[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-21 Thread Andy Whitcroft
That patch looks pretty simple and likely correct.  The sensible next
step is to push this up to the INPUT maintainer and see if they are
happy with it.  See the INPUT section of the MAINTAINERS file in the
kernel sources for email addresses.

** Changed in: linux (Ubuntu)
Sourcepackagename: None = linux

** Changed in: linux (Ubuntu)
   Importance: Undecided = Low
 Assignee: (unassigned) = Ubuntu Kernel Team (ubuntu-kernel-team)
   Status: In Progress = Triaged

** Changed in: linux (Ubuntu)
 Assignee: Ubuntu Kernel Team (ubuntu-kernel-team) = Andy Whitcroft (apw)
   Status: Triaged = In Progress

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-14 Thread manysounds
Hi, am also having this issue on a HP Pavillion zv6130us 8.10 64 bit.
Volume buttons act as if you hold them down for 10+ seconds until... it stops.
I may try the the rebuild but I'm still learning about building from source so 
mmmaybe not.
Thanks for your contributions!

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-14 Thread manysounds
This is not a mouse issue.  The volume meter hogs gnome desktop.

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-10 Thread rlj
Oops. Totally forgot I could just upload it right here. :)

Happy testing but note the warning above.


** Attachment added: Custom kernel with keyboard fix. Will overwrite your 
current kernel!
   
http://launchpadlibrarian.net/19540195/linux-image-2.6.27-7-generic_2.6.27-7.16_i386.deb

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-10 Thread rlj
Ok, I've built a custom version of linux-
image-2.6.27-7-generic_2.6.27-7.16_i386.deb including my fix using the
kernel sources fetched from ubuntu git, and despite my best efforts, the
build scripts still managed to make the package in such a way that it
will replace your standard kernel (rather than installing a new one
under a different suffix). Maybe I should've used the old method with
make-kpkg so I could specify a --append-to-version= directly.

Anyway, if there is any demand for it, I'll upload the package. It seems
to work fine on my box, and should it fail to boot on yours, keep the
real ubuntu kernel deb and a spare kernel around just in case so you can
revert to the official version.

Cheers,
Rikard

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-09 Thread rlj
Hi!

I think I found the right place in the kernel to add the quirk for the
keyboard on the HP Pavilion ZV6100. The issue was as I suspected caused
by the laptop's keyboard never reporting key-release scancodes for the
volume buttons.

To try out the patch:
Get intrepid kernel source
cd /path/to/kernel_source/drivers/input/keyboard
patch  /path/to/atkbd.c.patch
Rebuild kernel, install, and boot

I wrote and tested the patch for a wireless-git-2.6.27-rc tree which
happened to sit on my disk and it works fine there. I then adapted it so
it should apply to the current intrepid kernel without conflicts (I
think). I didn't actually download the whole intrepid source, but rather
just looked at the atkbd.c in http://kernel.ubuntu.com/git?p=ubuntu
/ubuntu-
intrepid.git;a=tree;f=drivers/input/keyboard;h=3057d4350d840c48f4ffe71af25ebcfb1117c242;hb=HEAD

If everyone affected by this bug could try out the patch and if it
doesn't work post the output of sudo dmidecode, that would be helpful.
That way, I can identify your laptop model and add it to the patch.

I'll see if I can get a patched intrepid kernel package built and
uploaded someplace soon for people who can't patch and recompile
themselves.

Cheers,
Rikard


** Attachment added: Add keyboard quirk for HP ZV6000 laptop
   http://launchpadlibrarian.net/19519416/atkbd.c.patch

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-09 Thread rlj
Uploaded patch for testing

** Changed in: ubuntu
   Status: Confirmed = In Progress

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-08 Thread rlj
I'm using a HP Pavilion zv6000EA and also experiencing this bug.

As for the behavior of the mouse button and the menu, I believe it's
caused by the volume OSD (either metacity's or compiz's) appearing and
preventing the menu from functioning properly. Also, a mere VT switch
back and forth is sufficient for the stuck volume key to stop
activating the OSD (no need to restart X). I've stumbled across similar
bugs before where X thought that the Win key was pressed. Doing a VT
switch back and forth helped there too.

I think this bug might actually be an old bug in the atkbd linux driver
or similar, which hasn't bitten us until now because of the behavior of
Xorg/hotkey-setup/whatever.

By running showkey -s in a VT, and from reading the man page, it seems
scancodes are either 1-byte or 2-byte escaped sequences beginning with
0xe0. Pressing a key such as 'a' produces the 0x1e key-press scancode.
If i hold the key for long enough, more 0x1e scancodes are produced, and
when the key is finally released, a 0x9e key-release scancode is
produced. It seems from looking at the codes that the corresponding key-
release scancode for a certain key is always the key-press scancode +
0x80 (0x1e + 0x80 = 0x9e).

Some showkey -s output:
'a' key : 0x1e 0x9e
Mute key : 0xe0 0x20 0xe0 0xa0
VolDown key : 0xe0 0x2e
VolUp key : 0xe0 0x30

As seen above, the VolDown and VolUp keys produce 2-byte 0xe0-escaped
key-press scancodes, but there are never any corresponding 0xe0ae or
0xe0b0 key-release scancode produced!

Looking at showkey -k, it is clear that the keycodes associated with the
scancodes (automatically through hotkey-setup) never register a key
release of the volume keys:

showkey -k output pressing (in order) Mute, VolDown, VolUp:
keycode 113 press
keycode 113 release
keycode 114 press
keycode 115 press

This behavior is identical in both kernel 2.6.24 from hardy (where the
volume keys worked fine in Gnome) and the new intrepid 2.6.27 kernel. So
I believe that some change in either Xorg or somewhere else made it
actually care about the key-release event never being produced and
interpret that as the key being held down (even though no additional
key-press keycodes are produced).

For reference, xev in X yields the following (repeating forever until i
VT switch back and forth) when i press VolUp:

KeyPress event, serial 30, synthetic NO, window 0x9e1,
root 0x67, subw 0x0, time 6276245, (83,-15), root:(88,50),
state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), 
same_screen YES,
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x9e1,
root 0x67, subw 0x0, time 6276748, (83,-15), root:(88,50),
state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), 
same_screen YES,
XLookupString gives 0 bytes: 
XFilterEvent returns: False

KeyPress event, serial 33, synthetic NO, window 0x9e1,
root 0x67, subw 0x0, time 6276748, (83,-15), root:(88,50),
state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), 
same_screen YES,
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False


KeyRelease event, serial 33, synthetic NO, window 0x9e1,
root 0x67, subw 0x0, time 6276798, (83,-15), root:(88,50),
state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), 
same_screen YES,
XLookupString gives 0 bytes: 
XFilterEvent returns: False

KeyPress event, serial 33, synthetic NO, window 0x9e1,
root 0x67, subw 0x0, time 6276798, (83,-15), root:(88,50),
state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), 
same_screen YES,
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x9e1,
root 0x67, subw 0x0, time 6276845, (83,-15), root:(88,50),
state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), 
same_screen YES,
XLookupString gives 0 bytes: 
XFilterEvent returns: False

Also, for reference, my mute button only procuces its 2 2-byte scancodes
upon key release. Nothing at all is produced until i release the key, so
it is impossible to hold the key down and get more than one event in
showkey -s or showkey -k. Not sure if this is hardwired in hardware or
in the atkbd linux driver...

Judging by the man page of setkeycodes, it doesn't seem to support
keyboards not producing key-release scancodes for certain keys, since
you only give one scancode (the key-press one) as input (and it figures
out the +0x80 key-release code on its own...). Therefore, my guess is
that this should be fixed somewhere in the kernel via a quirk to
automatically yield a 0xe0ae scancode after every 0xe02e and 0xe0b0
after every 0xe030. Maybe there is already a similar quirk responsible
for my mute button behavior mentioned above?

Cheers,
Rikard

-- 
Notebook Volume Up/Down Buttons 

[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-05 Thread Parthan SR
*** This bug is a duplicate of bug 268949 ***
https://bugs.launchpad.net/bugs/268949

** This bug has been marked a duplicate of bug 268949
   Volume control applet does not handle keyboad up and down on Intrepid Ibex

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-05 Thread Aaron Pickett
*** This bug is a duplicate of bug 268949 ***
https://bugs.launchpad.net/bugs/268949

I'm not convinced that this bug is a duplicate of #268949, for two
reasons:

1. 268949 describes the volume not responding at all to keyboard/button
input.  In this bug, the volume does respond to input, but does so
continuously.  I have verified that the GUI slider in the panel app does
move up/down (and continues to move to max/min volume) when the volume
buttons are pushed.

2. 268949 does not report the additional problems with mouse input after
trying to use the volume up/down button.

These two bugs may be related, but they are not the same behaviors.

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-05 Thread Parthan SR
** This bug is no longer a duplicate of bug 268949
   Volume control applet does not handle keyboad up and down on Intrepid Ibex

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-03 Thread Dennis Cardinale
I can confirm this bug with 32 bit 8.10 upgraded from 7.10 (iteratively
upgraded from 7.10 - 8.04 - 8.10) on a HP Pavilion ZV6233nr.

The multimedia keys did work properly in 7.10.  I do not know if they
would have worked in 8.04.

RE: Elias, these are not separate issues.  Panels  apps work fine until
MM key is pressed (either vol up/down or mute).  Then behavior as
described and Panels  some apps cease accepting mouse clicks.

It seems that MM key driver (where ever that is) is repeatedly sending
volume up/down events, even though MM key was released.

The only way I have found to reset the problem (other than cold boot)
is Alt-Ctrl-Del then logout and re-login.

This issue is a major inconvenience.  While volume can be adjusted via
GUI normally, forgetting not to use MM keys requires logout/in for
system to operate usably again.

Dennis

** Changed in: ubuntu
   Status: New = Confirmed

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-01 Thread Elias K Gardner
Hi thanks for reporting. This appears to be two bugs. 1) the behavior
off your sound buttons and 2) the inability to right click. Could you
please report 2) as a separate bug. Thanks

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 291878] Re: Notebook Volume Up/Down Buttons Misbehaving

2008-11-01 Thread Aaron Pickett
They are related.  The second problem (loss of right-click and menu
functions) occurs only after pressing the sound buttons.

-- 
Notebook Volume Up/Down Buttons Misbehaving
https://bugs.launchpad.net/bugs/291878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs