I think I found something... When I use acpi_backlight=vendor
, there is a ideapad
directory in/sys/class/backlight
. And I cannot change my screen brightness with key combination nor plasmoids (the plasmoids work before).
Here is the output of systemctl status systemd-backlight@backlight:ideapad.service
:
systemd-backlight@backlight:ideapad.service - Load/Save Screen Backlight Brightness of backlight:ideapad
Loaded: loaded (/usr/lib/systemd/system/[email protected]; static)
Active: failed (Result: exit-code) since Sun 2021-02-21 13:43:22 +08; 17h ago
Docs: man:[email protected](8)
Main PID: 367 (code=exited, status=1/FAILURE)
Feb 21 13:43:22 Jinglebell systemd[1]: Starting Load/Save Screen Backlight Brightness of backlight:ideapad...
Feb 21 13:43:22 Jinglebell systemd-backlight[367]: ideapad: Failed to read current brightness: Invalid argument
Feb 21 13:43:22 Jinglebell systemd[1]: systemd-backlight@backlight:ideapad.service: Main process exited, code=exited, status=1/FAILURE
Feb 21 13:43:22 Jinglebell systemd[1]: systemd-backlight@backlight:ideapad.service: Failed with result 'exit-code'.
Feb 21 13:43:22 Jinglebell systemd[1]: Failed to start Load/Save Screen Backlight Brightness of backlight:ideapad.
And this is the output of systemctl status systemd-backlight@backlight:intel_backlight.service
:
â—Ź systemd-backlight@backlight:intel_backlight.service - Load/Save Screen Backlight Brightness of backlight:intel_backlight
Loaded: loaded (/usr/lib/systemd/system/[email protected]; static)
Active: active (exited) since Sun 2021-02-21 13:43:23 +08; 17h ago
Docs: man:[email protected](8)
Main PID: 394 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 9207)
Memory: 0B
CGroup: /system.slice/system-systemd\x2dbacklight.slice/systemd-backlight@backlight:intel_backlight.service
Feb 21 13:43:23 Jinglebell systemd[1]: Starting Load/Save Screen Backlight Brightness of backlight:intel_backlight...
Feb 21 13:43:23 Jinglebell systemd[1]: Finished Load/Save Screen Backlight Brightness of backlight:intel_backlight.
Here is the log:
Feb 21 13:43:21 Jinglebell kernel: Command line: BOOT_IMAGE=/@/boot/vmlinuz-linux-tkg-bmq root=UUID=8e775f0f-1ed0-43b7-8e05-8c1830cbceaa rw rootflags=subvol=@ loglevel=3 quiet splash acpi_backlight=vendor
Feb 21 13:43:21 Jinglebell kernel: Kernel command line: intel_pstate=passive BOOT_IMAGE=/@/boot/vmlinuz-linux-tkg-bmq root=UUID=8e775f0f-1ed0-43b7-8e05-8c1830cbceaa rw rootflags=subvol=@ loglevel=3 quiet splash acpi_backlight=vendor
Feb 21 13:43:22 Jinglebell systemd[1]: Created slice system-systemd\x2dbacklight.slice.
Feb 21 13:43:22 Jinglebell systemd[1]: Starting Load/Save Screen Backlight Brightness of backlight:ideapad...
Feb 21 13:43:22 Jinglebell systemd-backlight[367]: ideapad: Failed to read current brightness: Invalid argument
Feb 21 13:43:22 Jinglebell systemd[1]: systemd-backlight@backlight:ideapad.service: Main process exited, code=exited, status=1/FAILURE
Feb 21 13:43:22 Jinglebell systemd[1]: systemd-backlight@backlight:ideapad.service: Failed with result 'exit-code'.
Feb 21 13:43:22 Jinglebell systemd[1]: Failed to start Load/Save Screen Backlight Brightness of backlight:ideapad.
Feb 21 13:43:22 Jinglebell audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-backlight@backlight:ideapad comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Feb 21 13:43:23 Jinglebell systemd[1]: Starting Load/Save Screen Backlight Brightness of backlight:intel_backlight...
Feb 21 13:43:23 Jinglebell systemd[1]: Finished Load/Save Screen Backlight Brightness of backlight:intel_backlight.
Feb 21 13:43:23 Jinglebell audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-backlight@backlight:intel_backlight comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 21 13:43:41 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 13:43:41 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 14:10:08 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 14:10:08 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 14:17:45 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 14:17:45 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 14:31:06 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 14:31:06 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 14:32:21 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 14:32:21 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 14:33:36 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 14:33:36 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 15:50:29 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 15:50:29 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 15:59:13 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 15:59:13 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 16:08:40 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 16:08:40 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 16:09:55 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 16:09:55 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 16:11:10 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 16:11:10 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 16:17:04 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 16:17:04 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 16:24:27 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 16:24:27 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 16:34:18 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 16:34:18 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 16:36:48 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 16:36:48 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 16:38:03 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 16:38:03 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 16:39:18 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 16:39:18 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 16:54:31 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 16:54:32 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 17:00:54 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 17:00:54 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 17:02:09 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 17:02:09 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 17:03:24 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 17:03:24 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 17:05:47 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 17:05:47 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 17:11:58 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 17:11:59 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 17:16:01 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 17:16:01 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 17:17:16 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 17:17:16 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 17:18:31 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 17:18:31 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 17:38:47 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 17:38:47 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 17:55:13 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 17:55:13 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 17:56:28 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 17:56:28 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 17:57:43 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 17:57:43 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 18:51:20 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 18:51:20 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 19:02:54 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 19:02:54 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 19:04:09 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 19:04:09 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 21 19:05:24 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 21 19:05:24 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 22 06:45:01 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 22 06:45:01 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 22 06:58:12 Jinglebell dbus-daemon[457]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2949 comm="/usr/lib/org_kde_powerdevil ") (using servicehelper)
Feb 22 06:58:12 Jinglebell dbus-daemon[457]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Feb 22 07:05:04 Jinglebell polkit-kde-authentication-agent-1[2944]: Message of action: "Authentication is required to start 'systemd-backlight@backlight:ideapad.service'."
Feb 22 07:05:06 Jinglebell polkitd[463]: Operator of unix-session:2 successfully authenticated as unix-user:jing to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.511 [systemctl start systemd-backlight@backlight:ideapad.service] (owned by unix-user:jing)
Feb 22 07:05:06 Jinglebell systemd[1]: Starting Load/Save Screen Backlight Brightness of backlight:ideapad...
Feb 22 07:05:06 Jinglebell systemd[1]: Finished Load/Save Screen Backlight Brightness of backlight:ideapad.
Feb 22 07:05:06 Jinglebell audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-backlight@backlight:ideapad comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 22 07:05:06 Jinglebell kernel: audit: type=1130 audit(1613948706.722:334): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-backlight@backlight:ideapad comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Here is the grep backlight /usr/lib/udev/rules.d/*.rules
command output:
/usr/lib/udev/rules.d/71-seat.rules:# Assign keyboard and LCD backlights to the seat
/usr/lib/udev/rules.d/71-seat.rules:SUBSYSTEM=="backlight", TAG+="seat"
/usr/lib/udev/rules.d/99-systemd.rules:# Pull in backlight save/restore for all backlight devices and
/usr/lib/udev/rules.d/99-systemd.rules:# keyboard backlights
/usr/lib/udev/rules.d/99-systemd.rules:SUBSYSTEM=="backlight", TAG+="systemd", IMPORT{builtin}="path_id", ENV{SYSTEMD_WANTS}+="systemd-backlight@backlight:$name.service"
/usr/lib/udev/rules.d/99-systemd.rules:SUBSYSTEM=="leds", KERNEL=="*kbd_backlight", TAG+="systemd", IMPORT{builtin}="path_id", ENV{SYSTEMD_WANTS}+="systemd-backlight@leds:$name.service"
And this is grep backlight /etc/udev/rules.d/*.rules
:
/etc/udev/rules.d/backlight.rules:ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", GROUP="video", MODE="0664"
I made this udev rule according to ArchWiki.