The officially official Devuan Forum!

You are not logged in.

#1 2022-02-08 09:25:39

amaro
Member
Registered: 2022-02-08
Posts: 97  

[SOLVED] intel_reg write is disabled upon display off/sleep

Hello everybody!

Every time the display goes off 'intel_reg write' gets disabled.
Every time have to restart it manually. It' very annoying.

intel_reg write 0x61254 0x07a10232
Warning: register spec not found in '/usr/share/igt-gpu-tools/registers'. Using builtin register spec.

How to make it permanent?

Offline

#2 2022-02-08 14:59:21

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] intel_reg write is disabled upon display off/sleep

See https://github.com/edio/intelpwm-udev for a script, configuration file and udev rule to set the PWM frequency automatically.


Brianna Ghey — Rest In Power

Offline

#3 2022-02-13 14:17:25

amaro
Member
Registered: 2022-02-08
Posts: 97  

Re: [SOLVED] intel_reg write is disabled upon display off/sleep

udevadm info --path=/sys/usr/lib/udev/rules.d/99-intelpwm.rules --attribute-walk

syspath not found
udevadm test /usr/lib/udev/rules.d/99-intelpwm.rules

GOTO 'backlight_pwm_rules_end' has no matching label in: '/usr/lib/udev/rules.d/99-intelpwm.rules'
unable to open device '/sys/usr/lib/udev/rules.d/99-intelpwm.rules'
Unload module index

for the record

cat /usr/lib/udev/rules.d/99-intelpwm.rules

KERNEL!="intel_backlight", SUBSYSTEM!="backlight", ACTION!="change", GOTO="backlight_pwm_rules_end"

RUN="/usr/lib/udev/intelpwm"

LABEL="backlight_pwm_rules_end"

Last edited by amaro (2022-02-13 14:22:20)

Offline

#4 2022-02-13 14:34:47

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] intel_reg write is disabled upon display off/sleep

Why have you placed the intelpwm script under /usr/lib/udev/? I think /usr/local/bin would be better. Is the intelpwm script executable? It might be best to open an issue in the linked GitHub repository if that doesn't make it work because I don't use Intel and so have no way of testing this.

It's not important but local udev rules belong in /etc/udev/rules.d/, /usr/lib/udev/rules.d/ is for rules supplied by packages.

The udevadm info command makes no sense at all, what are you trying to achieve with that?

Anyway if you can't get the udev rule working you can try this file at /etc/modprode.d/i915-pwm.conf instead:

install i915 /usr/local/bin/intelpwm ; /sbin/modprobe i915 --ignore-install

Make sure the intelpwm script is executable.

Last edited by Head_on_a_Stick (2022-02-13 14:35:52)


Brianna Ghey — Rest In Power

Offline

#5 2022-02-13 16:29:47

amaro
Member
Registered: 2022-02-08
Posts: 97  

Re: [SOLVED] intel_reg write is disabled upon display off/sleep

@Head_on_a_Stick

1. followed the instructions in the 'readme' file but it seems they are not adequate

2. 'udev info' and 'udev test' commands got from ubuntu forum when looking for solutions

3. after a reboot got the message

GOTO 'backlight_pwm_rules_end' has no matching label in: '/usr/lib/udev/rules.d/99-intelpwm.rules'

once into the login window my keyboard did not work

anyway, thank you for the suggestions!

Offline

#6 2022-02-13 20:44:08

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] intel_reg write is disabled upon display off/sleep

So does the /etc/modprobe.d/i915-pwm.conf suggestion work?


Brianna Ghey — Rest In Power

Offline

#7 2022-02-23 10:09:40

amaro
Member
Registered: 2022-02-08
Posts: 97  

Re: [SOLVED] intel_reg write is disabled upon display off/sleep

I dont have 'ansible' and cannot install it due to the lack of space.
Besides I am not sure this script works correctly here.

output after display was off i.e. with default frequency

intel_reg dump | grep PWM
Warning: register spec not found in '/usr/share/igt-gpu-tools/registers'. Using builtin register spec.
                        BLC_PWM_CTL (0x00061254): 0x02320232
                       BLC_PWM_CTL2 (0x00061250): 0xf3ffffff

output after running the script manually
'/usr/lib/udev/intelpwm'

root@6910p:~# /usr/lib/udev/intelpwm
Warning: register spec not found in '/usr/share/igt-gpu-tools/registers'. Using builtin register spec.
Warning: register spec not found in '/usr/share/igt-gpu-tools/registers'. Using builtin register spec.
Writing 0x71bbeffff to register 0x61250
Warning: register spec not found in '/usr/share/igt-gpu-tools/registers'. Using builtin register spec.
root@6910p:~# intel_reg dump | grep PWM
Warning: register spec not found in '/usr/share/igt-gpu-tools/registers'. Using builtin register spec.
                        BLC_PWM_CTL (0x00061254): 0x02320232
                       BLC_PWM_CTL2 (0x00061250): 0xf3ffffff

output after manually set the frequency
'fm' is alias for 'intel_reg write 0x61250 0x07a10232'

root@6910p:~# fm
Warning: register spec not found in '/usr/share/igt-gpu-tools/registers'. Using builtin register spec.
root@6910p:~# intel_reg dump | grep PWM
Warning: register spec not found in '/usr/share/igt-gpu-tools/registers'. Using builtin register spec.
                        BLC_PWM_CTL (0x00061254): 0x02320232
                       BLC_PWM_CTL2 (0x00061250): 0x03a10232

Offline

#8 2022-02-23 17:07:44

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] intel_reg write is disabled upon display off/sleep

What is the content of /etc/intelpwm.conf?

As I said earlier it might be best to open an issue on the GitHub repository so the author of the script can advise.


Brianna Ghey — Rest In Power

Offline

#9 2022-02-24 14:09:21

amaro
Member
Registered: 2022-02-08
Posts: 97  

Re: [SOLVED] intel_reg write is disabled upon display off/sleep

I removed all files and then went through the installation process again.
Just to make sure everything is done correctly.
The one difference is this time I copy/pasted the 'udev rule' in both places.
It seems to work now.
Thank you for being persisitent with your suggestions, Head_on_a_Stick!

Offline

Board footer