Debian Bug report logs - #324604
an external usb mouse is ignored as event and screen becomes dark

version graph

Package: pbbuttonsd; Maintainer for pbbuttonsd is Debian QA Group <packages@qa.debian.org>; Source for pbbuttonsd is src:pbbuttonsd.

Reported by: Christian Surchi <csurchi@debian.org>

Date: Mon, 22 Aug 2005 23:18:02 UTC

Severity: normal

Found in version pbbuttonsd/0.7.1-1

Fix blocked by 328374: generate more event devices?

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, csurchi@debian.org, Frank Lichtenheld <djpig@debian.org>:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to Christian Surchi <csurchi@debian.org>:
New Bug report received and forwarded. Copy sent to csurchi@debian.org, Frank Lichtenheld <djpig@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Christian Surchi <csurchi@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: an external usb mouse is ignored as event and screen becomes dark
Date: Tue, 23 Aug 2005 00:41:16 +0200
Package: pbbuttonsd
Version: 0.7.1-1
Severity: normal

I made a sid upgrade on my G4 ibook, after a few months. So I switched also to gnome 2.10 and xorg.
I didn't touch any configurations, pbbuttonsd too and now if I plug an external usb mouse, its events are not considered
as events and soon luminosity of scree goes down...

Thanks
Christian

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-powerpc
Locale: LANG=it_IT@euro, LC_CTYPE=it_IT@euro (charmap=ISO-8859-15)

Versions of packages pbbuttonsd depends on:
ii  hdparm                        6.1-5      tune hard disk parameters for high
ii  libasound2                    1.0.9-3    ALSA library
ii  libc6                         2.3.5-3    GNU C Library: Shared libraries an
ii  makedev                       2.3.1-78   creates device files in /dev

Versions of packages pbbuttonsd recommends:
pn  laptop-mode-tools             <none>     (no description available)

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to Frank Lichtenheld <djpig@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #10 received at 324604@bugs.debian.org (full text, mbox):

From: Frank Lichtenheld <djpig@debian.org>
To: Christian Surchi <csurchi@debian.org>, 324604@bugs.debian.org
Subject: Re: Bug#324604: an external usb mouse is ignored as event and screen becomes dark
Date: Sun, 28 Aug 2005 22:57:51 +0200
tags 324604 unreproducible
thanks

On Tue, Aug 23, 2005 at 12:41:16AM +0200, Christian Surchi wrote:
> I made a sid upgrade on my G4 ibook, after a few months. So I switched also to gnome 2.10 and xorg.
> I didn't touch any configurations, pbbuttonsd too and now if I plug an external usb mouse, its events are not considered
> as events and soon luminosity of scree goes down...

Hmm, I can't reproduce this here with my G4 12" Powerbook.

Gruesse,
-- 
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/



Tags added: unreproducible Request was from Frank Lichtenheld <djpig@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Frank Lichtenheld <djpig@debian.org>:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to Christian Surchi <csurchi@debian.org>:
Extra info received and forwarded to list. Copy sent to Frank Lichtenheld <djpig@debian.org>. Full text and rfc822 format available.

Message #17 received at 324604@bugs.debian.org (full text, mbox):

From: Christian Surchi <csurchi@debian.org>
To: Frank Lichtenheld <djpig@debian.org>
Cc: 324604@bugs.debian.org
Subject: Re: Bug#324604: an external usb mouse is ignored as event and screen becomes dark
Date: Mon, 29 Aug 2005 23:47:13 +0200
Il giorno dom, 28/08/2005 alle 22.57 +0200, Frank Lichtenheld ha
scritto:
> tags 324604 unreproducible
> thanks
> 
> On Tue, Aug 23, 2005 at 12:41:16AM +0200, Christian Surchi wrote:
> > I made a sid upgrade on my G4 ibook, after a few months. So I switched also to gnome 2.10 and xorg.
> > I didn't touch any configurations, pbbuttonsd too and now if I plug an external usb mouse, its events are not considered
> > as events and soon luminosity of scree goes down...
> 
> Hmm, I can't reproduce this here with my G4 12" Powerbook.

No help to find more details so we can analyze this problem?

thanks
Christian





Information forwarded to debian-bugs-dist@lists.debian.org, Frank Lichtenheld <djpig@debian.org>:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to Matthias Grimm <matthiasgrimm@users.sourceforge.net>:
Extra info received and forwarded to list. Copy sent to Frank Lichtenheld <djpig@debian.org>. Full text and rfc822 format available.

Message #22 received at 324604@bugs.debian.org (full text, mbox):

From: Matthias Grimm <matthiasgrimm@users.sourceforge.net>
To: 324604@bugs.debian.org
Cc: Christian Surchi <csurchi@debian.org>
Subject: an external usb mouse is ignored as event and screen becomes dark
Date: Thu, 1 Sep 2005 12:45:12 +0200
> I made a sid upgrade on my G4 ibook, after a few months. So I switched
> also to gnome 2.10 and xorg. I didn't touch any configurations,
> pbbuttonsd too and now if I plug an external usb mouse, its events are
> not considered as events and soon luminosity of scree goes down...

Pbbuttonsd scans only at startup for event devices. If you plug in your
mouse later, pbbuttonsd won't recognize it automatically (with default
configuration).

You could tell pbbuttonsd to regularly look for new event devices by
setting the configuration option autorescan = yes.

 Best Regards
   Matthias




Information forwarded to debian-bugs-dist@lists.debian.org, Frank Lichtenheld <djpig@debian.org>:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr>:
Extra info received and forwarded to list. Copy sent to Frank Lichtenheld <djpig@debian.org>. Full text and rfc822 format available.

Message #27 received at 324604@bugs.debian.org (full text, mbox):

From: Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr>
To: 324604@bugs.debian.org
Subject: The bug persists
Date: Mon, 05 Sep 2005 17:41:53 +0200
Hi,

I confirm that this bug exists on my machine, powerbook G4 Alu 15".

I tried rescan=yes and restarted pbbuttonsd, the bug still persists.

Reproduce this bug:
- put the AC off-line
- wait a bit until the screen gets darker
- move the USB mouse, press any USB mouse button, the screen stays dark
- if you move the mouse with the internal mouse, the screen does restore 
its initial luminosity

I use pbbuttonsd 0.7.1-1.

-- 
Eugen



Information forwarded to debian-bugs-dist@lists.debian.org, Frank Lichtenheld <djpig@debian.org>:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to Matthias Grimm <matthiasgrimm@users.sourceforge.net>:
Extra info received and forwarded to list. Copy sent to Frank Lichtenheld <djpig@debian.org>. Full text and rfc822 format available.

Message #32 received at 324604@bugs.debian.org (full text, mbox):

From: Matthias Grimm <matthiasgrimm@users.sourceforge.net>
To: 324604@bugs.debian.org
Cc: Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr>
Subject: Re: [Fwd: The bug persists]
Date: Tue, 6 Sep 2005 14:12:28 +0200
On Tue, 06 Sep 2005 12:41:08 +0200
Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr> wrote:

> [4] ids - 3 45e 47 300  Name: Microsoft Microsoft 5-Button Mouse with 
> IntelliEye(TM)
>    Supported Events:
>    0 (Reset) 1 (Key) 2 (Relative)

Here it is :-) Only an event device file was missed. Debian has no
device handler installed by default and I think this was the cause of
our trouble. 

Now after you have created the missing files it works but I
recommend to install udev if you use kernel 2.6. If you still use
kernel 2.4, let it as it is. Udev will only work on kernel 2.6.

> Now if I move the USB mouse or press the 2nd button, the screen gets 
> lighter, so it works now.  (The first USB mouse button is not taken into 
> account.)

After our short discussion I reviewed my code and found a solution to
take the left mouse button into account again without breaking some of
the other features. :-) The next version will contain the change. Thanks
for your patience and assistance.

I think the bug report is done, isn't it? I will forward this mail to the
debian bug tracker to close it.

  Best Regards
    Matthias




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to Frank Lichtenheld <djpig@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #37 received at 324604@bugs.debian.org (full text, mbox):

From: Frank Lichtenheld <djpig@debian.org>
To: Matthias Grimm <matthiasgrimm@users.sourceforge.net>, 324604@bugs.debian.org
Cc: Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr>
Subject: Re: Bug#324604: [Fwd: The bug persists]
Date: Tue, 6 Sep 2005 15:39:22 +0200
On Tue, Sep 06, 2005 at 02:12:28PM +0200, Matthias Grimm wrote:
> On Tue, 06 Sep 2005 12:41:08 +0200
> Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr> wrote:
> 
> > [4] ids - 3 45e 47 300  Name: Microsoft Microsoft 5-Button Mouse with 
> > IntelliEye(TM)
> >    Supported Events:
> >    0 (Reset) 1 (Key) 2 (Relative)
> 
> Here it is :-) Only an event device file was missed. Debian has no
> device handler installed by default and I think this was the cause of
> our trouble. 

Just for the record, which file?
But that certainly explain why I couldn't reproduce that since I
run udev here.

> Now after you have created the missing files it works but I
> recommend to install udev if you use kernel 2.6. If you still use
> kernel 2.4, let it as it is. Udev will only work on kernel 2.6.

Gruesse,
-- 
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/



Information forwarded to debian-bugs-dist@lists.debian.org, Frank Lichtenheld <djpig@debian.org>:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr>:
Extra info received and forwarded to list. Copy sent to Frank Lichtenheld <djpig@debian.org>. Full text and rfc822 format available.

Message #42 received at 324604@bugs.debian.org (full text, mbox):

From: Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr>
To: Matthias Grimm <matthiasgrimm@users.sourceforge.net>
Cc: 324604@bugs.debian.org
Subject: Re: [Fwd: The bug persists]
Date: Tue, 06 Sep 2005 16:15:44 +0200
Matthias Grimm wrote:
> On Tue, 06 Sep 2005 12:41:08 +0200
> Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr> wrote:
> 
> 
>>[4] ids - 3 45e 47 300  Name: Microsoft Microsoft 5-Button Mouse with 
>>IntelliEye(TM)
>>   Supported Events:
>>   0 (Reset) 1 (Key) 2 (Relative)
> 
> 
> Here it is :-) Only an event device file was missed. Debian has no
> device handler installed by default and I think this was the cause of
> our trouble. 
> 
> Now after you have created the missing files it works but I
> recommend to install udev if you use kernel 2.6. If you still use
> kernel 2.4, let it as it is. Udev will only work on kernel 2.6.

Ok.

>>Now if I move the USB mouse or press the 2nd button, the screen gets 
>>lighter, so it works now.  (The first USB mouse button is not taken into 
>>account.)
> 
> 
> After our short discussion I reviewed my code and found a solution to
> take the left mouse button into account again without breaking some of
> the other features. :-) The next version will contain the change. Thanks
> for your patience and assistance.
> 
> I think the bug report is done, isn't it? I will forward this mail to the
> debian bug tracker to close it.

Yes, thank you for your work!

-- 
Eugen



Information forwarded to debian-bugs-dist@lists.debian.org, Frank Lichtenheld <djpig@debian.org>:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to Matthias Grimm <matthias.grimm@htp-tel.de>:
Extra info received and forwarded to list. Copy sent to Frank Lichtenheld <djpig@debian.org>. Full text and rfc822 format available.

Message #47 received at 324604@bugs.debian.org (full text, mbox):

From: Matthias Grimm <matthias.grimm@htp-tel.de>
To: Frank Lichtenheld <djpig@debian.org>
Cc: 324604@bugs.debian.org, Eugen.Dedu@pu-pm.univ-fcomte.fr
Subject: Re: Bug#324604: [Fwd: The bug persists]
Date: Tue, 6 Sep 2005 17:23:14 +0200
On Tue, 6 Sep 2005 15:39:22 +0200
Frank Lichtenheld <djpig@debian.org> wrote:

> On Tue, Sep 06, 2005 at 02:12:28PM +0200, Matthias Grimm wrote:
> > On Tue, 06 Sep 2005 12:41:08 +0200
> > Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr> wrote:
> > 
> > > [4] ids - 3 45e 47 300  Name: Microsoft Microsoft 5-Button Mouse with 
> > > IntelliEye(TM)
> > >    Supported Events:
> > >    0 (Reset) 1 (Key) 2 (Relative)
> > 
> > Here it is :-) Only an event device file was missed. Debian has no
> > device handler installed by default and I think this was the cause of
> > our trouble. 
> 
> Just for the record, which file?
> But that certainly explain why I couldn't reproduce that since I
> run udev here.

/dev/input/event4 was missing. A "mknod /dev/input/event4 c 13 68"
solved the problem.

 Best Regards
   Matthias







Information stored:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to Frank Lichtenheld <djpig@debian.org>:
Extra info received and filed, but not forwarded. Full text and rfc822 format available.

Message #52 received at 324604-quiet@bugs.debian.org (full text, mbox):

From: Frank Lichtenheld <djpig@debian.org>
To: debian-devel@lists.debian.org
Cc: 324604-quiet@bugs.debian.org
Subject: Handling event device files [was: Bug#324604: [Fwd: The bug persists]]
Date: Sun, 11 Sep 2005 13:05:36 +0200
Hi.

I've a problem here where I'm unsure how to handle it. A mail from
the corresponding bug report is appended for reference but I will
try to explain it in my own words:

pbbuttonsd is a program for Apple Powerbooks that handles things like
powermanagment and special keys. It uses the event device files
(/dev/input/event*) to monitor attached input devices. The problem
now is that makedev only generates four of these event device files
(event0 to event3). On my fully standard Powerbook with an attached
USB mouse I have already _six_ of these those, if I would plug in
e.g. an external keybord or a second pointer device I could easily
have seven or eight of them. This leads to problems for users that
have a static /dev/ (i.e. don't use udev) since pbbuttonsd will
not see events from some of the devices.

There are three possible solutions to this AFAICS:

1) generate more device files in the postinst of the package with
   mknod (which is a policy violation IIRC)
2) make makedev produce more of these files (but probably most users
   don't need them, at least not on desktop PCs which have seldomly
   two mouses or keyboards)
3) Just tell each user to fix it himself (e.g. in a README.Debian
   file). Not really complicated, just some calls to mknod
   (or an installation of udev), but...

Any hints or comments would be welcome.

Gruesse,
	Frank Lichtenheld

----- Forwarded message from Matthias Grimm <matthias.grimm@htp-tel.de> -----

Subject: Bug#324604: [Fwd: The bug persists]
Reply-To: Matthias Grimm <matthias.grimm@htp-tel.de>,
	324604@bugs.debian.org
X-Debian-PR-Message: report 324604
X-Debian-PR-Package: pbbuttonsd
X-Debian-PR-Keywords: unreproducible
From: Matthias Grimm <matthias.grimm@htp-tel.de>
To: Frank Lichtenheld <djpig@debian.org>
Cc: 324604@bugs.debian.org, Eugen.Dedu@pu-pm.univ-fcomte.fr

On Tue, 6 Sep 2005 15:39:22 +0200
Frank Lichtenheld <djpig@debian.org> wrote:

> On Tue, Sep 06, 2005 at 02:12:28PM +0200, Matthias Grimm wrote:
> > On Tue, 06 Sep 2005 12:41:08 +0200
> > Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr> wrote:
> > 
> > > [4] ids - 3 45e 47 300  Name: Microsoft Microsoft 5-Button Mouse with 
> > > IntelliEye(TM)
> > >    Supported Events:
> > >    0 (Reset) 1 (Key) 2 (Relative)
> > 
> > Here it is :-) Only an event device file was missed. Debian has no
> > device handler installed by default and I think this was the cause of
> > our trouble. 
> 
> Just for the record, which file?
> But that certainly explain why I couldn't reproduce that since I
> run udev here.

/dev/input/event4 was missing. A "mknod /dev/input/event4 c 13 68"
solved the problem.

 Best Regards
   Matthias

----- End forwarded message -----

-- 
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/



Message sent on to Christian Surchi <csurchi@debian.org>:
Bug#324604. Full text and rfc822 format available.

Message #55 received at 324604-submitter@bugs.debian.org (full text, mbox):

From: Frank Lichtenheld <djpig@debian.org>
To: 324604-submitter@bugs.debian.org
Subject: Re: Bug#324604: [Fwd: The bug persists]
Date: Sun, 11 Sep 2005 13:06:57 +0200
Also bouncing that to the submitter because I'm not sure he has
seen the mails.

On Tue, Sep 06, 2005 at 05:23:14PM +0200, Matthias Grimm wrote:
> On Tue, 6 Sep 2005 15:39:22 +0200
> Frank Lichtenheld <djpig@debian.org> wrote:
> 
> > On Tue, Sep 06, 2005 at 02:12:28PM +0200, Matthias Grimm wrote:
> > > On Tue, 06 Sep 2005 12:41:08 +0200
> > > Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr> wrote:
> > > 
> > > > [4] ids - 3 45e 47 300  Name: Microsoft Microsoft 5-Button Mouse with 
> > > > IntelliEye(TM)
> > > >    Supported Events:
> > > >    0 (Reset) 1 (Key) 2 (Relative)
> > > 
> > > Here it is :-) Only an event device file was missed. Debian has no
> > > device handler installed by default and I think this was the cause of
> > > our trouble. 
> > 
> > Just for the record, which file?
> > But that certainly explain why I couldn't reproduce that since I
> > run udev here.
> 
> /dev/input/event4 was missing. A "mknod /dev/input/event4 c 13 68"
> solved the problem.
> 
>  Best Regards
>    Matthias

-- 
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/



Information stored:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to md@Linux.IT (Marco d'Itri):
Extra info received and filed, but not forwarded. Full text and rfc822 format available.

Message #60 received at 324604-quiet@bugs.debian.org (full text, mbox):

From: md@Linux.IT (Marco d'Itri)
To: debian-devel@lists.debian.org, 324604-quiet@bugs.debian.org
Subject: Re: Handling event device files [was: Bug#324604: [Fwd: The bug persists]]
Date: Sun, 11 Sep 2005 13:29:24 +0200
[Message part 1 (text/plain, inline)]
On Sep 11, Frank Lichtenheld <djpig@debian.org> wrote:

> 1) generate more device files in the postinst of the package with
>    mknod (which is a policy violation IIRC)
Right.

> 2) make makedev produce more of these files (but probably most users
>    don't need them, at least not on desktop PCs which have seldomly
>    two mouses or keyboards)
It could be done, but many users would need anyway to adjust the
permissions (which is hard, because a device can easily move among
nodes).

> 3) Just tell each user to fix it himself (e.g. in a README.Debian
>    file). Not really complicated, just some calls to mknod
>    (or an installation of udev), but...
I favour this. If for some weird reason an user does not want to use
udev, let him deal with the results without having to make your package
more complex.

-- 
ciao,
Marco
[signature.asc (application/pgp-signature, inline)]

Information stored:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to Christoph Hellwig <hch@lst.de>:
Extra info received and filed, but not forwarded. Full text and rfc822 format available.

Message #65 received at 324604-quiet@bugs.debian.org (full text, mbox):

From: Christoph Hellwig <hch@lst.de>
To: debian-devel@lists.debian.org, 324604-quiet@bugs.debian.org
Subject: Re: Handling event device files [was: Bug#324604: [Fwd: The bug persists]]
Date: Sun, 11 Sep 2005 13:56:59 +0200
On Sun, Sep 11, 2005 at 01:05:36PM +0200, Frank Lichtenheld wrote:
> 2) make makedev produce more of these files (but probably most users
>    don't need them, at least not on desktop PCs which have seldomly
>    two mouses or keyboards)

That's the right choice.  Lot's of laptops have additional even sources,
as do various external disk enclosures or random usb devices.  In
addition the uinput driver can create additional sources from userspace
input.  makedev should create all 32 specified /dev/input/eventN
devices.




Information stored:
Bug#324604; Package pbbuttonsd. Full text and rfc822 format available.

Acknowledgement sent to Peter 'p2' De Schrijver <p2@mind.be>:
Extra info received and filed, but not forwarded. Full text and rfc822 format available.

Message #70 received at 324604-quiet@bugs.debian.org (full text, mbox):

From: Peter 'p2' De Schrijver <p2@mind.be>
To: debian-devel@lists.debian.org, 324604-quiet@bugs.debian.org
Subject: Re: Handling event device files [was: Bug#324604: [Fwd: The bug persists]]
Date: Sun, 11 Sep 2005 23:57:16 +0200
[Message part 1 (text/plain, inline)]
> 2) make makedev produce more of these files (but probably most users
>    don't need them, at least not on desktop PCs which have seldomly
>    two mouses or keyboards)

That's probably the right solution. Device nodes hardly take any
resources anyway.

Cheers,

Peter (p2).
[signature.asc (application/pgp-signature, inline)]

Blocking bugs added: 328374 Request was from Frank Lichtenheld <djpig@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Tags removed: unreproducible Request was from Frank Lichtenheld <djpig@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 12:25:38 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.