public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* FYI: ACPI 'sleep 1' resets atkbd keycodes
@ 2004-01-25  9:37 P. Christeas
  2004-01-25 10:50 ` Vojtech Pavlik
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: P. Christeas @ 2004-01-25  9:37 UTC (permalink / raw)
  To: acpi-devel, Vojtech Pavlik, lkml

This may be just a minor issue:
I had to use the setkeycodes utility to enable some extra keys (that weren't 
mapped by kernel's atkbd tables).
After waking from sleep 1, those keys were reset. That is, I had to use 
'setkeycodes' again to customize the tables again.

IMHO the way kernel works now is correct. It should *not* have extra code just 
to handle that. Just make sure anybody that alters his kbd tables puts some 
extra script to recover the tables after an ACPI wake.
This should be more like a note to Linux distributors.

Have a nice day.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: FYI: ACPI 'sleep 1' resets atkbd keycodes
@ 2004-02-03  6:27 Yu, Luming
  0 siblings, 0 replies; 8+ messages in thread
From: Yu, Luming @ 2004-02-03  6:27 UTC (permalink / raw)
  To: Dmitry Torokhov, Vojtech Pavlik, P. Christeas; +Cc: acpi-devel, lkml

> > > This may be just a minor issue:
> > > I had to use the setkeycodes utility to enable some extra 
> keys (that
> > > weren't mapped by kernel's atkbd tables).
> > > After waking from sleep 1, those keys were reset. That 
> is, I had to
> > > use 'setkeycodes' again to customize the tables again.
> > >
> > > IMHO the way kernel works now is correct. It should *not* 
> have extra
> > > code just to handle that. Just make sure anybody that 
> alters his kbd
> > > tables puts some extra script to recover the tables after an ACPI
> > > wake.
> > > This should be more like a note to Linux distributors.
> > >
> > > Have a nice day.

Do you need a event through /proc/acpi/event that can notify userland of
resuming happend,
And let userland app have chance to invoke setkeycode, and other similar
things.

> -	/*
> -	 * Here we probably should check if the keyboard has 
> the same set that
> -         * it had before and bail out if it's different. But 
> this will most likely
> -         * cause new keyboard device be created... and for 
> the user it will look
> -         * like keyboard is lost
> -	 */
> +	if (atkbd->set != old_set) {
> +		/*
> +		 * ok, we woke up with a different keyboard 
> attached. Alhtough we could just
> +		 * signal failure it's not very nice as it will 
> most likely cause new keyboard
> +		 * device be created... and for the user it 
> will look like keyboard is lost.
> +		 */
> +		atkbd_set_name(atkbd);

Is it correct to think if the keyboard has the different set that it
had before , then keyboard has been replaced, without considering
it could be changed by setkeycode.

--Luming

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-02-03  7:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-25  9:37 FYI: ACPI 'sleep 1' resets atkbd keycodes P. Christeas
2004-01-25 10:50 ` Vojtech Pavlik
2004-01-25 11:59 ` Vojtech Pavlik
2004-01-26 17:42   ` P. Christeas
2004-02-03  4:38   ` Dmitry Torokhov
2004-02-03  7:37     ` Vojtech Pavlik
2004-01-26 23:41 ` bill davidsen
  -- strict thread matches above, loose matches on Subject: below --
2004-02-03  6:27 Yu, Luming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox