#568645 [TRIGGER] setupcon requires udevadm trigger && udevadm settle

#568645#5
Date:
2010-02-06 13:50:34 UTC
From:
To:
When I change the keyboard type in the file /etc/default/keyboard,
and after restarting the service, udev does not reflect the change,
until that I execute

udevadm trigger && udevadm settle

I think that the setupcon program should call udevadm after setting a new
keyboard layout,

Regards,

Jordi Pujol

Live never ending Tale
GNU/Linux Live forever!
http://livenet.selfip.com

#568645#10
Date:
2010-02-06 15:05:45 UTC
From:
To:
tag 568645 help
severity 568645 minor
thank you

Strictly speaking setupcon means 'setup console' and this doesn't
suppose that udevadm has to be called.  Because of this I am lowering
the severity to 'minor'.  On the other hand I agree that this can be
useful.

The reason I am not going to fix this is that I am not well acquanted
with the udev/hal system.  I understand that the patch to fix the bug is
very simple but sometimes to maintain a one-line code and to fix all
problems that could arise in the future requires more than simply
understanding what this one-line command does.  There is no way back -
if this functionality is added to setupcon the users will expect it so
it would be impossible to revert the change.  Correspondingly I am
adding a 'help' tag to this bug and leaving for some other developer to
fix it.

Anton Zinoviev

#568645#19
Date:
2010-02-06 17:32:41 UTC
From:
To:
No package should call "udevadm trigger", ever.
At most, if this is actually needed by the package, the command used
should be something like "udevadm trigger --action=change
--xxxxx-match=yyyy" with the appropriate options to restrict the events
to only the right devices.

I see no reason to call "udevadm settle" either in this scenario.

#568645#24
Date:
2010-02-06 20:26:33 UTC
From:
To:
Hello,

following those directives, could be:

udevadm trigger --action=change --subsystem-match=input

I have written the attached patch to solve that,

Jordi Pujol

Live never ending Tale
GNU/Linux Live forever!
http://livenet.selfip.com


A Dissabte, 6 de febrer de 2010 18:32:41, vàreu escriure:

#568645#29
Date:
2010-02-06 20:42:29 UTC
From:
To:
A Dissabte, 6 de febrer de 2010 16:05:45, Anton Zinoviev va escriure:

the X server uses the keyboard layout specified by udev,
changing the console keyboard also implies the keyboard layout used by the X
server,
after the change, restarting the services has no effect on the X keyboard until
we update udev, or rebooting the complete OS.

Jordi Pujol

Live never ending Tale
GNU/Linux Live forever!
http://livenet.selfip.com