[Bug 225643] New: Changing brightness with Vaio laptop hotkeys broken
https://bugzilla.novell.com/show_bug.cgi?id=225643 Summary: Changing brightness with Vaio laptop hotkeys broken Product: openSUSE 10.2 Version: RC 1 Platform: i686 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: kde@3danim.de QAContact: qa@suse.de System is a Sony Vaio T1XP with a fresh installation of openSUSE 10.2 RC1 running KDE. Changing the display brightness works fine using kpowersave. However when using the laptop hotkeys (Fn+F5/F6) for changing the brightness, only a message window shows up (it has the same look as when pressing volume hotkeys), indicating that screen brightness is being changed. Contrary to the expected behavior, only the LED brightness of the power-button on the laptop-chassis changes but not the display brightness. Apparently whatever program showing the message window is trying to change the brightness is using the sonypi module (when using spicctrl, the same effect is visible). kpowersave on the other hand appears to be using the sony_acpi module which is able to correctly set the screen brightness. The hotkey handler should thus be modified to use sony_acpi or sonypi be fixed to correctly address the hardware. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 ------- Comment #1 from mhorvath@novell.com 2006-12-03 19:20 MST ------- Please attach your /var/log/messages, output of the 'lsmod' and 'hwinfo --monitor --gfxcard'. Thank you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |kde@3danim.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 ------- Comment #2 from kde@3danim.de 2006-12-04 05:19 MST ------- `lsmod`: hidp 23680 2 ohci1394 37040 0 ieee1394 102584 1 ohci1394 button 10896 0 nfs 233324 0 lockd 73064 1 nfs nfs_acl 7808 1 nfs sunrpc 156604 3 nfs,lockd,nfs_acl michael_mic 6784 0 arc4 6272 0 ieee80211_crypt_tkip 14720 0 i915 22656 2 drm 71316 3 i915 xt_pkttype 6016 3 ipt_LOG 10624 8 xt_limit 6912 8 af_packet 29320 2 vmnet 45484 16 parport_pc 42084 0 parport 39752 1 parport_pc vmmon 113836 0 sonypi 25788 1 snd_pcm_oss 53376 0 snd_mixer_oss 21248 1 snd_pcm_oss snd_seq 60272 0 snd_seq_device 12812 1 snd_seq cpufreq_conservative 11912 0 cpufreq_ondemand 10892 1 cpufreq_userspace 9088 0 cpufreq_powersave 5888 0 speedstep_centrino 12832 1 freq_table 8832 1 speedstep_centrino sony_acpi 9868 0 battery 14340 0 ac 9476 0 ip6t_REJECT 9344 3 xt_tcpudp 7296 3 ipt_REJECT 9472 3 xt_state 6272 12 iptable_mangle 7040 0 iptable_nat 11524 0 ip_nat 21804 1 iptable_nat iptable_filter 7168 1 ip6table_mangle 6528 0 ip_conntrack 52960 3 xt_state,iptable_nat,ip_nat nfnetlink 11032 2 ip_nat,ip_conntrack ip_tables 17604 3 iptable_mangle,iptable_nat,iptable_filter ip6table_filter 7040 1 ip6_tables 18756 2 ip6table_mangle,ip6table_filter x_tables 18180 10 xt_pkttype,ipt_LOG,xt_limit,ip6t_REJECT,xt_tcpudp,ipt_REJECT,xt_state,iptable_nat,ip_tables,ip6_tables ipv6 263584 15 ip6t_REJECT twofish 47488 1 cryptoloop 7680 1 ohci_hcd 23428 0 apparmor 55572 0 aamatch_pcre 18304 1 apparmor nls_utf8 6272 1 ntfs 210580 1 loop 20488 3 cryptoloop dm_mod 60184 0 rfcomm 45208 6 l2cap 30976 10 hidp,rfcomm pcmcia 40892 0 hci_usb 20636 5 bluetooth 57188 14 hidp,rfcomm,l2cap,hci_usb ipw2200 110020 0 e100 39688 0 ieee80211 34632 1 ipw2200 ieee80211_crypt 10112 2 ieee80211_crypt_tkip,ieee80211 yenta_socket 30348 1 mii 9600 1 e100 usbhid 52192 0 rsrc_nonstatic 17024 1 yenta_socket firmware_class 14080 2 pcmcia,ipw2200 pcmcia_core 43412 3 pcmcia,yenta_socket,rsrc_nonstatic i2c_i801 11660 0 i2c_core 25216 1 i2c_i801 ide_cd 42272 0 uhci_hcd 26892 0 cdrom 38432 1 ide_cd ehci_hcd 34696 0 shpchp 40224 0 usbcore 114896 5 ohci_hcd,hci_usb,usbhid,uhci_hcd,ehci_hcd intel_agp 26652 1 pci_hotplug 35136 1 shpchp snd_intel8x0 36764 1 snd_ac97_codec 95648 1 snd_intel8x0 snd_ac97_bus 6400 1 snd_ac97_codec snd_pcm 86788 3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec snd_timer 27908 2 snd_seq,snd_pcm snd 61188 10 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer soundcore 13792 1 snd snd_page_alloc 14472 2 snd_intel8x0,snd_pcm agpgart 35528 3 drm,intel_agp ext3 141192 2 mbcache 12804 1 ext3 jbd 70324 1 ext3 edd 13892 0 fan 8964 0 piix 13700 0 [permanent] thermal 18568 0 processor 34664 2 speedstep_centrino,thermal ide_disk 20480 5 ide_core 129992 3 ide_cd,piix,ide_disk `hwinfo --monitor --gfxcard`: 13: PCI 02.0: 0300 VGA compatible controller (VGA) [Created at pci.281] UDI: /org/freedesktop/Hal/devices/pci_8086_3582 Unique ID: _Znp.cXZoUFWI+q6 SysFS ID: /devices/pci0000:00/0000:00:02.0 SysFS BusID: 0000:00:02.0 Hardware Class: graphics card Model: "Sony 855 GM" Vendor: pci 0x8086 "Intel Corporation" Device: pci 0x3582 "855 GM" SubVendor: pci 0x104d "Sony Corporation" SubDevice: pci 0x8192 Revision: 0x02 Memory Range: 0xe8000000-0xefffffff (rw,prefetchable) Memory Range: 0xe0000000-0xe007ffff (rw,non-prefetchable) I/O Ports: 0x1800-0x1807 (rw) IRQ: 9 (8175198 events) I/O Ports: 0x3c0-0x3df (rw) Module Alias: "pci:v00008086d00003582sv0000104Dsd00008192bc03sc00i00" Driver Info #0: XFree86 v4 Server Module: i810 Driver Info #1: XFree86 v4 Server Module: i810 3D Support: yes Extensions: dri Config Status: cfg=no, avail=yes, need=no, active=unknown 14: PCI 02.1: 0380 Display controller [Created at pci.281] UDI: /org/freedesktop/Hal/devices/pci_8086_3582_0 Unique ID: ruGf.cZ_gvWhFl3C SysFS ID: /devices/pci0000:00/0000:00:02.1 SysFS BusID: 0000:00:02.1 Hardware Class: graphics card Model: "Sony 855 GM" Vendor: pci 0x8086 "Intel Corporation" Device: pci 0x3582 "855 GM" SubVendor: pci 0x104d "Sony Corporation" SubDevice: pci 0x8192 Revision: 0x02 Memory Range: 0xf0000000-0xf7ffffff (rw,prefetchable,disabled) Memory Range: 0xe0080000-0xe00fffff (rw,non-prefetchable,disabled) Module Alias: "pci:v00008086d00003582sv0000104Dsd00008192bc03sc80i00" Driver Info #0: XFree86 v4 Server Module: i810 Driver Info #1: XFree86 v4 Server Module: i810 3D Support: yes Extensions: dri Config Status: cfg=no, avail=yes, need=no, active=unknown 30: None 00.0: 10000 Monitor [Created at fb.71] Unique ID: rdCR.EY_qmtb9YY0 Hardware Class: monitor Model: "Generic Monitor" Vendor: "Generic" Device: "Monitor" Resolution: 1024x768@76Hz Driver Info #0: Max. Resolution: 1024x768 Vert. Sync Range: 50-90 Hz Hor. Sync Range: 31-61 kHz Config Status: cfg=new, avail=yes, need=no, active=unknown `tail -f /var/log/messages` (pressing Fn+F5 and then Fn+F6): Dec 4 13:17:18 vaio powersave-hotkey_handler[25282]: WARNING: EV_ID: 33, unclean exit or unconverted script, please read the powersaved manual (chapter 11) if this is a customized event script Dec 4 13:17:18 vaio powersave-hotkey_handler[25288]: WARNING: EV_ID: 34, unclean exit or unconverted script, please read the powersaved manual (chapter 11) if this is a customized event script Dec 4 13:17:22 vaio powersave-hotkey_handler[25294]: WARNING: EV_ID: 35, unclean exit or unconverted script, please read the powersaved manual (chapter 11) if this is a customized event script Dec 4 13:17:23 vaio powersave-hotkey_handler[25300]: WARNING: EV_ID: 36, unclean exit or unconverted script, please read the powersaved manual (chapter 11) if this is a customized event script -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 kde@3danim.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|kde@3danim.de | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |hmacht@novell.com |screening@forge.provo.novell| |.com | Status|ASSIGNED |NEW -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 ------- Comment #3 from seife@novell.com 2006-12-05 11:46 MST ------- Holger, hotkey_handler is broken, because it does "exit 0" instead of "EXIT 0". M., can you please configure in /etc/powersave/events: EVENT_OTHER="debug_events" # was "hotkey_handler" then restart powersaved, press the Fn-F5 and Fn-F6 once, then report the lines logged in /var/log/messages? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 hmacht@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |kde@3danim.de ------- Comment #4 from hmacht@novell.com 2006-12-06 05:56 MST ------- (In reply to comment #3)
Holger, hotkey_handler is broken, because it does "exit 0" instead of "EXIT 0".
No it is not. hotkey_handler executes thinkpad_acpi_events, and this one does the EXIT 0. This this intended.
M., can you please configure in /etc/powersave/events: EVENT_OTHER="debug_events" # was "hotkey_handler" then restart powersaved, press the Fn-F5 and Fn-F6 once, then report the lines logged in /var/log/messages?
I think the problem is just that kpowersave uses HAL for changing the brightness, HAL can make use of the sony module. The hotkeyhandler just executes a thinkpad_acpi_events script and has no handling for sony laptops. We might be able to add a call to HAL into the hotkey handler though. Or maybe we start thinking about a proper solution for all this hotkey hanlding ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 thoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kde-maintainers@suse.de ------- Comment #5 from thoenig@novell.com 2006-12-06 06:09 MST ------- (In reply to comment #0)
Changing the display brightness works fine using kpowersave. However when using the laptop hotkeys (Fn+F5/F6) for changing the brightness, only a message window shows up (it has the same look as when pressing volume hotkeys), indicating that screen brightness is being changed. Contrary to the expected behavior, only the LED brightness of the power-button on the laptop-chassis changes but not the display brightness.
That (stupid) application is KDE's KMilo plugin.
Apparently whatever program showing the message window is trying to change the brightness is using the sonypi module (when using spicctrl, the same effect is visible).
This is clearly defective. KMilo seems to detect that your system is a Sony laptop and simply "thinks" that for all such systems sonypi is in charge. This is wrong, of course.
kpowersave on the other hand appears to be using the sony_acpi module which is able to correctly set the screen brightness.
The hotkey handler should thus be modified to use sony_acpi or sonypi be fixed to correctly address the hardware.
Actually it is fine to have KMilo draw the on-screen-display. However, it should not blindly try to use sonypi for changing the brightness. CC'ing KDE maintainers. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 kde@3danim.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|kde@3danim.de | ------- Comment #6 from kde@3danim.de 2006-12-06 07:33 MST ------- (In reply to comment #3) Output is: Dec 6 15:32:14 vaio [debug_events][9142]: commandline arguments: 'other' 'scheme_performance' 'sony/hotkey SPIC 00000001 00000010' '4' Dec 6 15:32:14 vaio [debug_events][9148]: commandline arguments: 'other' 'scheme_performance' 'sony/hotkey SPIC 00000001 0000003b' '5' Dec 6 15:32:15 vaio [debug_events][9154]: commandline arguments: 'other' 'scheme_performance' 'sony/hotkey SPIC 00000001 00000011' '6' Dec 6 15:32:15 vaio [debug_events][9160]: commandline arguments: 'other' 'scheme_performance' 'sony/hotkey SPIC 00000001 0000003b' '7' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |kde@3danim.de ------- Comment #7 from dmueller@novell.com 2006-12-06 07:58 MST ------- does it work if you type "dcop kded kded unloadModule kmilod" ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 kde@3danim.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|kde@3danim.de | ------- Comment #8 from kde@3danim.de 2006-12-06 08:49 MST ------- No. If I disable kmilod, I only get the same errors in /var/log/messages as written in comment #2 or #6 respectively (if debug is enabled). Apart from that, neither the power button LED nor the display changes brightness. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 ------- Comment #9 from seife@novell.com 2006-12-06 08:52 MST ------- (In reply to comment #4)
(In reply to comment #3)
Holger, hotkey_handler is broken, because it does "exit 0" instead of "EXIT 0".
No it is not. hotkey_handler executes thinkpad_acpi_events, and this one does the EXIT 0. This this intended.
No, it does not. Only on some very uncommon hardware, thinkpad_acpi_events is executed. On the vast majority of hardware out there, it is not. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 ------- Comment #10 from hmacht@novell.com 2006-12-06 08:54 MST ------- (In reply to comment #9)
(In reply to comment #4)
(In reply to comment #3)
Holger, hotkey_handler is broken, because it does "exit 0" instead of "EXIT 0".
No it is not. hotkey_handler executes thinkpad_acpi_events, and this one does the EXIT 0. This this intended.
No, it does not. Only on some very uncommon hardware, thinkpad_acpi_events is executed. On the vast majority of hardware out there, it is not.
True ;-) Will change this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 thoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |kde@3danim.de ------- Comment #11 from thoenig@novell.com 2006-12-06 08:58 MST ------- (This is unrelated to the bug. I have no intention to hijack it) Markus, as the sonypi module is being loaded on your machine, can you tell me whether using spicctrl gives you any functionality on your system? If this is not the case, we should prevent sonypi from being loaded on similar systems. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 kde@3danim.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|kde@3danim.de | ------- Comment #12 from kde@3danim.de 2006-12-06 09:23 MST ------- (In reply to comment #11)
Markus, as the sonypi module is being loaded on your machine, can you tell me whether using spicctrl gives you any functionality on your system? If this is not the case, we should prevent sonypi from being loaded on similar systems.
spicctrl only sets the power button brightness and is useless in that regard. What it does do successfully though is turn bluetooth on or off. I am not using this as there is no (userspace) GUI for this functionality and my laptop model has a hardware switch for that, but it might annoy some people if missing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 hmacht@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hmacht@novell.com AssignedTo|hmacht@novell.com |thoenig@novell.com Status|ASSIGNED |NEW ------- Comment #13 from hmacht@novell.com 2007-01-12 04:57 MST ------- Hm, I think powersave is not guilty here and can't do much about it. Reassigning to Timo. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 ast@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #14 from ast@novell.com 2007-01-29 02:48 MST ------- released -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 kde@3danim.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Comment #15 from kde@3danim.de 2007-02-05 15:16 MST ------- I've just received the new scripts via online update. While the patch did fix the error messages from /var/log/messages, it did not fix the original issue, that is, the display brightness still does not change. I am therefore reopening this bug. If I can be of any further help in fixing this, please indicate how. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643 jonas@trinix.se changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonas@trinix.se ------- Comment #16 from jonas@trinix.se 2007-06-02 05:45 MST ------- I have a Sony SZ2 with the same problem. I've tried Ubuntu 7.04 live-cd on it, and there the hotkeys where functional. In openSUSE 10.2, spicctl -b=50 (50, and a series of other values) did not function . I can set my brightness with Control Panel -> Powersaving (I use swedish as language so the names might be wrong in english). Modules loaded: sonypi 25788 0 sony_acpi 9868 0 In /etc/powersave/events: EVENT_OTHER="hotkey_handler" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=225643#c17
Timo Hoenig
participants (1)
-
bugzilla_noreply@novell.com