[Bug 1727466] Re: ubuntu 17.10 gdm numlockx cannot be activated

2017-10-31 Thread ubuntushop
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

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gdm3 in Ubuntu.
https://bugs.launchpad.net/bugs/1727466

Title:
  ubuntu 17.10 gdm numlockx cannot be activated

To manage notifications about this bug go to:
https://bugs.launchpad.net/gdm/+bug/1727466/+subscriptions

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

[Bug 1727466] Re: ubuntu 17.10 gdm numlockx cannot be activated

2017-10-30 Thread ubuntushop
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,,

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gdm3 in Ubuntu.
https://bugs.launchpad.net/bugs/1727466

Title:
  ubuntu 17.10 gdm numlockx cannot be activated

To manage notifications about this bug go to:
https://bugs.launchpad.net/gdm/+bug/1727466/+subscriptions

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

[Bug 1727466] [NEW] ubuntu 17.10 gdm numlockx cannot be activated

2017-10-25 Thread ubuntushop
Public bug reported:

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

** Affects: gdm (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gdm in Ubuntu.
https://bugs.launchpad.net/bugs/1727466

Title:
  ubuntu 17.10 gdm numlockx cannot be activated

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/1727466/+subscriptions

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