Keyboard lights not working after suspend fix

Questions about hardware and drivers
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Chris Tinacan
Level 1
Level 1
Posts: 4
Joined: Sat Mar 13, 2021 5:53 am
Location: Ireland

Keyboard lights not working after suspend fix

Post by Chris Tinacan »

Hey!

I'm having an issue with the lights on my laptop keyboard - the num lock, caps lock and scroll lock lights are always either on or off. Pressing the caps lock, num lock or scroll lock buttons doesn't change any of the lights.

The issue arose after implementing a fix from this thread: viewtopic.php?t=152185
My keyboard was sometimes not working after my laptop was suspended, and the fix was to edit a line in /etc/default/grub from:

Code: Select all

GRUB_CMDLINE_LINUX=""
to:

Code: Select all

GRUB_CMDLINE_LINUX="atkbd.reset=1 i8042.nomux=1 i8042.reset=1 i8042.nopnp=1 i8042.dumbkbd=1"
I'm using LMDE4 64-bit, although I had the exact same problem in Mint 20 Ulyana. Any help would be greatly appreciated :D

System details:

Code: Select all

chris@lmde-vaio:~$ inxi -Fxxxrz
System:
  Host: lmde-vaio Kernel: 4.19.0-14-amd64 x86_64 bits: 64 compiler: gcc 
  v: 8.3.0 Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 dm: LightDM 1.26.0 
  Distro: LMDE 4 Debbie base: Debian 10.2 buster 
Machine:
  Type: Laptop System: Sony product: VPCEH2N1E v: C106K8RT serial: <filter> 
  Chassis: type: 10 serial: <filter> 
  Mobo: Sony model: VAIO serial: <filter> BIOS: INSYDE v: R0180Z9 
  date: 04/28/2011 
Battery:
  ID-1: BAT0 charge: 15.7 Wh condition: 42.3/43.2 Wh (98%) volts: 3.3/10.8 
  model: Sony Corp. VGP-BPS26 type: Li-ion serial: <filter> 
  status: Discharging 
CPU:
  Topology: Dual Core model: Intel Core i5-2430M bits: 64 type: MT MCP 
  arch: Sandy Bridge rev: 7 L2 cache: 3072 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19156 
  Speed: 799 MHz min/max: 800/3000 MHz Core speeds (MHz): 1: 798 2: 798 
  3: 798 4: 798 
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics 
  vendor: Sony driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0116 
  Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa DRI Intel Sandybridge Mobile v: 3.3 Mesa 18.3.6 
  compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio 
  vendor: Sony driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  chip ID: 8086:1c20 
  Sound Server: ALSA v: k4.19.0-14-amd64 
Network:
  Device-1: Qualcomm Atheros AR9285 Wireless Network Adapter vendor: Foxconn 
  driver: ath9k v: kernel port: 4040 bus ID: 07:00.0 chip ID: 168c:002b 
  IF: wlp7s0 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Sony driver: r8169 v: kernel port: 2000 bus ID: 13:00.0 
  chip ID: 10ec:8168 
  IF: enp19s0 state: down mac: <filter> 
  Device-3: Qualcomm Atheros AR3011 Bluetooth type: USB driver: btusb 
  bus ID: 1-1.5:8 chip ID: 0cf3:3005 
Drives:
  Local Storage: total: 298.09 GiB used: 48.86 GiB (16.4%) 
  ID-1: /dev/sda vendor: Western Digital model: WD3200BEVT-75ZCT2 
  size: 298.09 GiB speed: 3.0 Gb/s rotation: 5400 rpm serial: <filter> 
  rev: 1A11 scheme: MBR 
Partition:
  ID-1: / size: 284.43 GiB used: 48.86 GiB (17.2%) fs: ext4 dev: /dev/sda2 
  ID-2: swap-1 size: 8.10 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda1 
Sensors:
  System Temperatures: cpu: 49.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
  1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://ftp.heanet.ie/pub/packages.linuxmint.com debbie main upstream import backport
  2: deb https://deb.debian.org/debian/ buster main contrib non-free
  3: deb https://deb.debian.org/debian/ buster-updates main contrib non-free
  4: deb http://security.debian.org/ buster/updates main contrib non-free
  5: deb https://deb.debian.org/debian/ buster-backports main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list 
  1: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
Info:
  Processes: 194 Uptime: 1h 38m Memory: 7.74 GiB used: 1.54 GiB (19.9%) 
  Init: systemd v: 241 runlevel: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: bash 
  v: 5.0.3 running in: gnome-terminal inxi: 3.0.32 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Welcome
Level 6
Level 6
Posts: 1026
Joined: Wed Aug 19, 2020 11:38 am

Re: Keyboard lights not working after suspend fix

Post by Welcome »

In the post you referenced, it was noted that the last 3 items may not be needed.

Code: Select all

GRUB_CMDLINE_LINUX="atkbd.reset=1 i8042.nomux=1 i8042.reset=1 i8042.nopnp=1 i8042.dumbkbd=1"
Try a test. Remove one of the last 3 items at a time and see if your keyboard changes.

For example, try...

Code: Select all

GRUB_CMDLINE_LINUX="atkbd.reset=1 i8042.nomux=1 i8042.reset=1 i8042.nopnp=1"
If that doesn't work, try...

Code: Select all

GRUB_CMDLINE_LINUX="atkbd.reset=1 i8042.nomux=1 i8042.reset=1"
And finally, if that doesn't work, try...

Code: Select all

GRUB_CMDLINE_LINUX="atkbd.reset=1 i8042.nomux=1"
Please try these and let us know if anything changes.
Welcome
Level 6
Level 6
Posts: 1026
Joined: Wed Aug 19, 2020 11:38 am

Re: Keyboard lights not working after suspend fix

Post by Welcome »

Please see my previous post first...

Here's some related reference info:

Code: Select all

	atkbd.extra=	[HW] Enable extra LEDs and keys on IBM RapidAccess,
			EzKey and similar keyboards

	atkbd.reset=	[HW] Reset keyboard during initialization
	i8042.debug	[HW] Toggle i8042 debug mode
	i8042.unmask_kbd_data
			[HW] Enable printing of interrupt data from the KBD port
			     (disabled by default, and as a pre-condition
			     requires that i8042.debug=1 be enabled)
	i8042.direct	[HW] Put keyboard port into non-translated mode
	i8042.dumbkbd	[HW] Pretend that controller can only read data from
			     keyboard and cannot control its state
			     (Don't attempt to blink the leds)
	i8042.noaux	[HW] Don't check for auxiliary (== mouse) port
	i8042.nokbd	[HW] Don't check/create keyboard port
	i8042.noloop	[HW] Disable the AUX Loopback command while probing
			     for the AUX port
	i8042.nomux	[HW] Don't check presence of an active multiplexing
			     controller
	i8042.nopnp	[HW] Don't use ACPIPnP / PnPBIOS to discover KBD/AUX
			     controllers
	i8042.notimeout	[HW] Ignore timeout condition signalled by controller
	i8042.reset	[HW] Reset the controller during init, cleanup and
			     suspend-to-ram transitions, only during s2r
			     transitions, or never reset
			Format: { 1 | Y | y | 0 | N | n }
			1, Y, y: always reset controller
			0, N, n: don't ever reset controller
			Default: only on s2r transitions on x86; most other
			architectures force reset to be always executed
	i8042.unlock	[HW] Unlock (ignore) the keylock
	i8042.kbdreset	[HW] Reset device connected to KBD port

	i810=		[HW,DRM]
If the previous tests didn't work, you might want to try adding atkbd.extra=1
User avatar
Chris Tinacan
Level 1
Level 1
Posts: 4
Joined: Sat Mar 13, 2021 5:53 am
Location: Ireland

Re: Keyboard lights not working after suspend fix

Post by Chris Tinacan »

Thanks for the guidance!

I tried the first step and it didn't resolve the issue, but it allowed me to confirm that i8042.nomux=1 and i8042.reset=1 aren't needed to wake the keyboard after suspend.

Unfortunately adding atkbd.extra=1 didn't make a difference either so if anyone has any other suggestions they'd be very welcome :)
User avatar
AZgl1800
Level 20
Level 20
Posts: 11145
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Keyboard lights not working after suspend fix

Post by AZgl1800 »

on my ASUS FX705,

pressing Function Key and the Up Arrow key turns on the kybd lights
each up press makes them brighter,

dn press makes them dimmer until they go OFF.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
Locked

Return to “Hardware Support”