Bug 304162

Summary: brightness hotkey no more work with beta2 and beta3 (works with beta1)
Product: [openSUSE] openSUSE 10.3 Reporter: Perret Florian <f-perret>
Component: Mobile DevicesAssignee: Christian Zoz <zoz>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: forgotten_B-7XM5iatA, forgotten_eSTct29jGv, jmatejek
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 10.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: lshal
Complete lshal
messages
acpidump
dmesg
dmesg
acpidump
lsmod and xorg-x11-driver-video

Description Perret Florian 2007-08-24 07:48:38 UTC
On laptop Asus W7, hotkey for brightness doesn't work anymore in beta2. They works with beta1, this could be an issue with the new hal version.
Comment 1 Danny Al-Gaaf 2007-08-28 19:16:05 UTC
What exactly do you mean and how did you detect this problem (which desktop/tools/etc.)? 
Comment 2 Perret Florian 2007-08-28 21:14:49 UTC
With beta1, if I use Fn+F5/F6 I can set different level of brightness. With beta2 it doesn't work anymore.
I'm using GNOME with default install on an Asus W7 laptop.

On the same computer with OpenSuse 10.2, Fn+F5/F6 keys work only if compiz isn't install.
Comment 3 Danny Al-Gaaf 2007-08-28 21:33:05 UTC
1) attach output of lshal to the bug (as attachment)
2) start 'lshal -m' and press Fn+F5/F6 keys and post the output to this bug
3) did you an update from Beta1 or a new installation? In case of update: check if consolekit is running. If not do as root: 
   - insserv /etc/init.d/consolekit
   - restart your X-session (e.g. via 'init 3; init 5' on a console)
Comment 4 Perret Florian 2007-08-29 07:14:48 UTC
Created attachment 160568 [details]
lshal
Comment 5 Perret Florian 2007-08-29 07:18:13 UTC
lshal -m doesn't give any respond with Fn+F5/F6 :
"lshal -m
Start monitoring devicelist:
-------------------------------------------------"

F5/F6 alone give something but Fn alone nothing.

And my beta2 install is a fresh one but I've tried "insserv /etc/init.d/consolekit" and nothing change.
Comment 6 Danny Al-Gaaf 2007-08-29 09:37:44 UTC
(In reply to comment #4 from Perret Florian)
> Created an attachment (id=160568) [details]
> lshal

This attachment is complete useless, it doesn't provide the complete lshal output. Do this:

lshal > /tmp/lshal

attach the file /tmp/lshal to this bug
Comment 7 Danny Al-Gaaf 2007-08-29 09:39:26 UTC
(In reply to comment #5 from Perret Florian)
> lshal -m doesn't give any respond with Fn+F5/F6 :

Check /var/log/messages if there are any messages about unknown scancodes if you press Fn+F5/F6.
Comment 8 Perret Florian 2007-08-29 13:02:23 UTC
Created attachment 160697 [details]
Complete lshal
Comment 9 Perret Florian 2007-08-29 13:03:23 UTC
Created attachment 160698 [details]
messages

Can't see something about FN+key in messages.
Comment 10 Danny Al-Gaaf 2007-08-30 14:18:07 UTC
1) try hal from this repo:
http://download.opensuse.org/repositories/home:/dkukawka/openSUSE_Factory/

2) start 'acpi_listen', press the brightness button. Is there any output?
Comment 11 Perret Florian 2007-08-30 14:52:55 UTC
No output for Fn+F5/F6 (brightness)
No output for "Super" key

But there is an output for sound hotkey but they have no action on the sound ! :
enable/disable sound : hotkey ATKD 00000032 00000002
low sound : hotkey ATKD 00000031 00000002
up sound : hotkey ATKD 00000030 00000002

low sound : hotkey ATKD 00000031 00000007
up sound : hotkey ATKD 00000030 00000012

Comment 12 Danny Al-Gaaf 2007-08-31 20:25:05 UTC
@Timo: please investigate this, I don't think that hal is the problem (no acpi events, no other events and also no unknown keycodes). May a hotkey-setup or a g-p-m problem.
Comment 13 Timo Hoenig 2007-08-31 20:35:58 UTC
Alright.  I'll have a look at this next week.
Comment 14 Perret Florian 2007-09-01 08:42:27 UTC
Ok, thanks.

To summarize :

* OpenSuse 10.2 :
No hotkey for sound and brigtness with or whithout XGL/Compiz

* OpenSuse 10.3 beta 1 without XGL/Compiz (don't have test with XGL/Compiz) :
Hotkey for brigtness works
Hotkey for sound doesn't work

* OpenSuse 10.3 beta 2 (don't have test with XGL/Compiz) :
Hotkey for brightness doesn't work
Hotkey for sound doesn't work


With acpi_listen on beta 2, here the result for all hotkey :

To control the sound, there is to mean, the "roll" is the easier one :
hotkey ATKD 00000032 00000003 : Roll switch on/off sound (doesn't work)
hotkey ATKD 00000031 00000002 : Roll low sound (doesn't work)
hotkey ATKD 00000030 00000002 : Roll up sound (doesn't work)
hotkey ATKD 00000032 00000002 : Fn+F10 switch on/off sound (doesn't work)
hotkey ATKD 00000031 00000001 : Fn+F11 low sound (doesn't work)
hotkey ATKD 00000030 00000001 : FN+F12 up sound (doesn't work)

"Super" key : no result
"Right menu" key : no result
Brigtness key down : FN+F5 no result
Brigtness key up : FN+F6 no result

hotkey ATKD 00000034 00000000 : Fn+F7 switch off LCD (works)
hotkey ATKD 00000033 00000000 : Fn+F7 switch on LCD (works)

hotkey ATKD 00000061 00000000 : Fn+F8 switch output screen (can't test here but works in 10.2)

hotkey ATKD 0000005f 00000000 : Fn+F2 switch off networks (works partially : can't make a distinction between wifi and bluetooth : all on or all off !)
hotkey ATKD 0000007e 00000000 : automaticelly activated by the precedent hotkey

hotkey ATKD 0000005e 00000000 : Fn+F2 switch on networks  (works partially : can't make a distinction between wifi and bluetooth : all on or all off)
hotkey ATKD 0000007d 00000000 : automaticelly activated by the precedent hotkey

hotkey ATKD 00000050 00000000 : Fn+F2 start internet browser (doesn't work)
hotkey ATKD 00000051 00000000 : FN+F3 start mail client (doesn't work)

button/sleep SLPB 00000080 00000001 : FN+F1 sleep mode (seems to work but ram sleep doesn't work on this computer)
Comment 15 Perret Florian 2007-09-10 05:50:55 UTC
Same problem in beta 3.

"super" key now works with gnome (but not with kde).

It will be great if at least sound and brightness key work in 10.3. It's a big lack for power saving...
Comment 16 Timo Hoenig 2007-09-11 12:15:20 UTC
I've fixed the hotkey integration for ASUS laptops. Volume handling and such should work.

That, however, does not fix the issue about brightness handling.

On your system the ACPI events for brightness up and down are not being reported.  As long as this does not get reported by asus-laptop there is nothing I can do on the userspace side.

Reassigning to the kernel maintainers.
Comment 17 Perret Florian 2007-09-22 12:44:34 UTC
With RC1:
- sound hotkeys make appears the 'sound bar' but they don't change really the sound level (seems to change the mic-in level instead),
- acpi_listen doesn't give result with brightness hotkeys,
- acpi_listen doesn't give result with 'Super' key (GNOME and KDE, beta 3 worked with GNOME),
- Fn+F8 switch screen output (LCD/external/LCD+external) doesn't work. I've test with a videoprojector : hotkey ATKD 00000061 00000007
Comment 18 Perret Florian 2007-10-08 09:32:15 UTC
Same problem in GM than RC1.
Comment 19 Forgotten User eSTct29jGv 2007-12-19 20:44:42 UTC
The reason why brightness keys don't work is that recent ASUS BIOSes use "the Vista way" for changing brightness, instead of letting hardware do it. In Linux this is handled by the "video" kernel module, which is disabled by default in openSUSE 10.3.

To re-enable it, comment out the line in /etc/modprobe.d/xorg-x11-driver-video with a #, then do modprobe video.

It is then highly possible that pressing the brightness keys will increase/decrease it with a step of two. See this bug for a solution: https://bugzilla.novell.com/show_bug.cgi?id=331599
Comment 20 Jan Matejek 2008-01-07 14:09:45 UTC
this applies (and solution works) for MSI PR200 as well

why exactly is the video module disabled?
Comment 21 Forgotten User B-7XM5iatA 2008-01-31 16:41:10 UTC
The same problem on my Lenovo 3000 N 100 (BYG 0768).
Brightness hotkeys and the brightness support in KPowersave works in openSUSE 10.3 Beta1.
Both doesn't work anymore in all versions after.
In case of Lenovo the brightness hotkeys are Fn+F10 and Fn+F11.
lshal -m doesn't give any response with Fn+F10/F11.
I'm using openSuSE 10.3 x86.
Comment 22 Alexey Starikovskiy 2008-02-11 14:41:39 UTC
Norman,
Did you try steps from #19?
If this does not help, please provide acpidump and dmesg outputs.
Comment 23 Forgotten User B-7XM5iatA 2008-02-11 17:39:50 UTC
Created attachment 194256 [details]
acpidump
Comment 24 Forgotten User B-7XM5iatA 2008-02-11 17:41:21 UTC
Created attachment 194257 [details]
dmesg
Comment 25 Forgotten User B-7XM5iatA 2008-02-11 18:11:58 UTC
(In reply to comment #22 from Alexey Starikovskiy)
> Norman,
> Did you try steps from #19?
> If this does not help, please provide acpidump and dmesg outputs.
> 
There is only one entry in /etc/modprobe.d/xorg-x11-driver-video
only this one: install video /bin/true
Is this to comment out ???

Which (video) kernel-module should be enabled ?

Another importend information:
Brightness hotkeys are working until the GRUB Bootscreen.
After systemboot brightness hotkey are non-effective.
Comment 26 Forgotten User B-7XM5iatA 2008-02-11 18:12:39 UTC
Created attachment 194264 [details]
dmesg
Comment 27 Alexey Starikovskiy 2008-02-11 18:16:07 UTC
Norman, did you try steps from #19?
Your acpidump is truncated from the beginning, please repost.
Comment 28 Alexey Starikovskiy 2008-02-11 18:17:52 UTC
Please do "lsmod | grep video"
If "video" is present, try to unload it with "rmmod video"
If it is not present, try to load it with "modprobe video" 
Comment 29 Forgotten User B-7XM5iatA 2008-02-11 18:33:01 UTC
lsmod | grep video
video is not present
after modprobe video
video is likewise not present
Comment 30 Forgotten User B-7XM5iatA 2008-02-11 18:40:23 UTC
Created attachment 194269 [details]
acpidump
Comment 31 Alexey Starikovskiy 2008-02-11 23:02:33 UTC
yes, please comment entry in /etc/modprobe.d/xorg-x11-driver-video -- modprobe video should work after.
Comment 32 Forgotten User B-7XM5iatA 2008-02-12 15:00:47 UTC
Created attachment 194471 [details]
lsmod and xorg-x11-driver-video

Here lsmod and xorg-x11-driver-video after systemboot and after modprobe video
In both cases I can't locate a kernelmodul video or a difference in xorg-x11-driver-video
Comment 33 Alexey Starikovskiy 2008-02-12 16:43:26 UTC
Norman, please put '#' at the beginning of xorg-x11-driver-video, it will comment out the first string, thus allowing 'video' module to load.
Comment 34 Forgotten User B-7XM5iatA 2008-02-12 17:32:40 UTC
yes, after comment out the string
"install video /bin/true"
in xorg-x11-driver-video
it's possible to load the kernelmodul video.
After modul loading the brightness hotkeys and the brightness support in KPowersave is working again.
After system reboot kernelmodul video will loaded automatic.
Very good job !
Thank you very much
Comment 35 Forgotten User B-7XM5iatA 2008-02-13 22:12:35 UTC
Alexey, today I made the test from comment 31 a second time because I forgot a space to make before "modprobe".
After that I attempted to load the modul video.
I got a errormessage that modprobe video will ignored.
Alas I can't remember the exactly wording sorry.
Then I comment out the line in /etc/modprobe.d/xorg-x11-driver-video again.
But now it was impossible to load the modul video.

linux-laptop:/home/norman # modprobe video -v
install /bin/true

with and without "#" before line
install video /bin/true
in /etc/modprobe.d/xorg-x11-driver-video 

The only way to load the modul was
linux-laptop:/home/norman # modprobe video -i -v
insmod /lib/modules/2.6.22.16-0.2-default/kernel/drivers/acpi/video.ko
linux-laptop:/home/norman # lsmod | grep video
video                  21640  0

What did I wrong ?
After Systemboot modul video is now not loaded.
Comment 36 Alexey Starikovskiy 2008-02-13 23:09:16 UTC
please do a 'grep video /etc/modprobe.d/*'. 
Comment 37 Forgotten User B-7XM5iatA 2008-02-14 11:24:02 UTC
linux-laptop:/home/norman # grep video /etc/modprobe.d/*
/etc/modprobe.d/blacklist:#  sed -e '/\/drivers\/video\/.*\.\(o\|ko\)$/{s@^.*/@@;s@\..*$@@;p};d'
/etc/modprobe.d/blacklist:# look in /usr/src/linux/Documentation/video4linux/CARDLIST.bttv.
/etc/modprobe.d/xorg-x11-driver-video:install video /bin/true
Comment 38 Forgotten User B-7XM5iatA 2008-02-14 11:55:03 UTC
After that I comment out the line
install video /bin/true
in /etc/modprobe.d/xorg-x11-driver-video
and attempted to load the modul video again.
Now it was possible to load the module video.
I can't understand this because I did not other as the day before.
I made no changes in any files only the "#" before install /bin/true.
I want understand this but I have no idea why this functioned today.
Comment 39 Christoph Thiel 2008-04-25 13:05:08 UTC
Info provided as per comment #37 & comment #38
Comment 41 Jan Matejek 2010-09-09 18:17:57 UTC
this works now