ubuntu 17.10 gdm numlockx cannot be activated

Bug #1727466 reported by ubuntushop
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gdm
Expired
Wishlist
gdm3 (Ubuntu)
Won't Fix
Low
Unassigned

Bug Description

In ubuntu 17.10 i am not able to activate numlock on the login screen.

Tried with and without wayland. Cannot get numlockx working as I always did in other *ubuntu's with gdm.

/etc/gdm3/Init/Default is not working anymore.

is there a way to do it?

Guyd

Tags: artful
affects: gdm (Ubuntu) → gdm3 (Ubuntu)
Changed in gdm3 (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Changed in gdm:
importance: Unknown → Wishlist
status: Unknown → Confirmed
Changed in gdm3 (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
ubuntushop (g-info-l) wrote :

Dirty hack
Make sure numlockx is installed and
sudo sed -i -e 's/#WaylandEnable=false/WaylandEnable=false/g' /etc/gdm3/custom.conf

as sudo:
create a script named num.sh in /usr/local/sbin/num.sh

sudo pico /usr/local/sbin/num.sh
and put this in it:

#!/bin/bash
gdm=`pidof gdm3`
until [ $gdm -gt 0 ] do
su - gdm -s /bin/sh
export $(dbus-launch)
DISPLAY=:0
export DISPLAY
export XAUTHORITY=/run/user/121/gdm/Xauthority
numlockx on
done
exit

make it excutable:
sudo chmod +x /usr/local/sbin/num.sh

create a /etc/rc.local file
sudo pico /etc/rc.local
put this in it:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/usr/local/sbin/num.sh &
exit 0

make it also executable:
sudo chmod +x /etc/rc.local

Should be working numlockx on gdm screen.

Place your script also in /etc/gdm3/PostSession/Default
sed -i '$ i\/usr/local/sbin/num.sh &' /etc/gdm3/PostSession/Default
without it: when you log out,,, no numlockx,,

Revision history for this message
ubuntushop (g-info-l) wrote :

replaced Xauthority:
#!/bin/bash
gdm=`pidof gdm3`
until [ $gdm -gt 0 ] do
su - gdm -s /bin/sh
export $(dbus-launch)
export XAUTHORITY=/run/user/121/gdm/Xauthority
DISPLAY=:0
export DISPLAY
numlockx on
done
exit

Changed in gdm:
status: Confirmed → Expired
tags: added: artful
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 17.10 (artful) reached end-of-life on July 19, 2018.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in gdm3 (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.