I need a way to regain access to my keyboard and screen brigthness.

I always invoke my screensaver from a terminal in XMonad with the following command which I have aliased: setxkbmap -option srvrkeys:none && xdotool key super+shift+b [just toggles a menubar] && alock -b none -i none -c blank & cmatrix && xdotool key super+b [restores menubar] & setxkbmap -option ''

However, this time I had decreased the screen brightness level to 0 before I ran the command because I know how to log back in but this time Im not able to log back in for some reason. I have tried restarting my computer which gives me the grub bootloader and then the initialization feedback screen but then the dark screen from before comes back instead of the console login prompt (yes I usually boot just to the console) and the keyboard doesn't respond.

Im running Parabola GNU/Linux with libreboot on an X200 laptop.

  • You should be able to boot to live OS, modify configuration file from that OS, then boot back to your OS.
    – Ramhound
    Oct 6 '16 at 13:38
  • I have done so but I don't know what configuration file to change.
    – freecode
    Oct 6 '16 at 14:02

I solved it by creating the file: /etc/udev/rules.d/45-backlight.rules

with the content: ACTION=="add", KERNEL=="acpi_video0", SUBSYSTEM=="backlight", SUBSYSTEMS=="pci", DRIVERS=="i915", ATTR{brightness}="2"

Which gave me a low but sufficient amount of brightness that allowed me to log in from the console login prompt (brightness could be set higher somewhere between 1-15 I think). It would be interesting to know where the brightness setting is stored between reboots though.

  • Since it was the brightness setting and not the screenlock that was persistent between reboots another solution would probably have been to blindly enter login credentials upon boot and issue startx, and then the keyboard adjust brightness buttons would have worked from within the x-session.
    – freecode
    Oct 6 '16 at 15:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.