asus switch video hotkey

Bug #138228 reported by Nicolò Chieffo
6
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: acpi-support

asus laptops have a hotkey that lets the user change the video outputs (vga, svideo, lcd).
I'm building a patch to link it to /etc/acpi/videobtn.sh

Related branches

Revision history for this message
Nicolò Chieffo (yelo3) wrote :
Daniel Hahler (blueyed)
Changed in acpi-support:
assignee: nobody → blueyed
status: New → In Progress
importance: Undecided → Wishlist
Revision history for this message
Daniel Hahler (blueyed) wrote :

The patch/fix has been included in the debdiff at bug 193842, and is waiting for sponsorship.
A test package is available from my PPA, if you want to test it (https://launchpad.net/~blueyed/+archive).

Changed in acpi-support:
assignee: blueyed → nobody
status: In Progress → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package acpi-support - 0.106

---------------
acpi-support (0.106) hardy; urgency=low

  * Cherrypicked bugfix patches from Launchpad (LP: #193842)
  * lib/state-funcs: make wireless led work with asus-laptop (the new module);
    patch from Nicolò Chieffo (LP: #189889)
  * Add events/asus-video to support asus switch video hotkey; patch from
    Nicolò Chieffo (LP: #138228)
  * events/asus-wireless-2, asus-wireless-2.sh:
    Support Fn+F2 on Asus A8Js; patch from Matteo Collina (LP: #105929)
  * Fix the value range in sonybright.sh (0-7 instead of 1-8); patch from unggnu
    (LP: #136380)
  * "lib/FUJITSU SIEMENS.config":
    - Enable suspend for Fujitsu-Siemens C1110 (LP: #52970)
    - Enable STR for Fujitsu-Siemens Lifebook S7020, S7110
  * resume.d/50-time.sh, suspend.d/88-time.sh:
    Fix handling of hardware clock before/after suspend; patch from Rodrigo
    Novo (LP: #36815)
  * events/asus-*: Fix event key names for ASUS (HOTK); patch from
    Jeroen van der Vegt (LP: #25784)
  * Fix names in comments for events/panasonic-{mute,volume-down,volume-up}
  * debian/rules, README.toshiba: Drop toshiba_acpi.modprobe, which only
    contained an invalid/obsolete option "hotkeys_over_acpi" (LP: #180678)
  * debian/control: Standards-Version 3.7.3
  * Drop thinkpad_acpi.modprobe: the workarounds therein are not needed for
    thinkpad_acpi in Hardy anymore; investigations by Jerone Young (LP: #194679)
  * Add events/lenovo-eject to handle the Thinkpad eject button (Fn+F9); patch
    from Jerone Young (LP: #194609)

 -- Daniel Hahler <email address hidden> Thu, 06 Mar 2008 02:15:54 +0100

Changed in acpi-support:
status: Triaged → Fix Released
Revision history for this message
Nikolaus Filus (nfilus) wrote :

Although this bug is marked as "fix released" I'm commenting this.
Some Asus and Samsung notebooks share ACPI features like hotkeys and both are supported
by the asus_laptop kernel module. This report here added an ACPI hotkey event for the Fn+F4
(video switch) combo on my Samsung P35 (ATI Radeon 9700 r300), but there is no effect to the key press.
The situation is as follows:

- key press
- /etc/acpi/events/asus-video
- /etc/acpi/videobtn.sh
- acpi_fakekey $KEY_VIDEOOUT
- KEY_VIDEOOUT maps to 227
- no reaction :(

Which application should handle this event in hardy? Where to look for more hints?
I've written some helper scripts, I can call manually, which efectively do:
  xrandr --output VGA-0 --auto
  xrandr --output LVDS --mode 1280x1024
  xvattr -a XV_CRTC -v 1
or
  xrandr --output VGA-0 --off
  xrandr --output LVDS --mode 1400x1050
  xvattr -a XV_CRTC -v 0

Why is there no general handler for this case? It's hard to switch video-out during run-time and
especially after resume, as there seems to be no automatisation.

[Maybe related report is at bug #212790]

Revision history for this message
Daniel Hahler (blueyed) wrote :

Nikolaus, thanks for reporting about this.
This sounds like bug 217504, please subscribe there and provide any additional info you may have, while trying to keep the bug "in shape" for easy understanding.

Bug 212790 seems to be different: acpi_fakekey does not get triggered (probably) at all.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.