Hello how are you, these days I have spent installing a couple of distros in my sister-in-law's notebook, which has a small problem and is that the lamp of the
monitor does not turn on with distros whose kernel is 3.x so after looking around I found a solution, but I had to make this solution apply by itself at the beginning, and after trying a bit I managed to apply it in the 3 distros that I install and now I will comment on how it was implemented.
The command that we must execute with root permissions on the console is:
setpci -s 00:02.0 f4.b=0f
I applied it in Sabayon X with KDE, in Chakra Claire and in ArchLinux, I will start by explaining how I did it in Sabayon which was the first one I installed.
Solution in Sabayon: In this distro it was simpler, in the /etc/local.d/ folder I created a file called video.start and inside I wrote the following:
setpci -s 00:02.0 F4.B=0F
Save the file, restart and voila the lamp lights up perfectly.
Solution in Systemd: Well, here the issue was a bit more complex, first create in the / etc / directory the rc.local file with permissions 755 and in the following
#! / bin / sh setpci -s 00: 02.0 F4.B = 0F exit 0
after this I needed to create the service so I did the following, in the / usr / lib / systemd / system / folder create a service called rc-local.service as follows:
[Unit] Description = / etc / rc.local Compatibility ConditionPathExists = / etc / rc.local [Service] Type = forking ExecStart = / etc / rc.local [Install] WantedBy = multi-user.target Alias = rc-local. service
once this file is created, we save and execute the following command:
sudo systemctl enable rc-local.service
and ready to start, we will raise the monitor perfectly.
The only bad thing is that we cannot adjust the brightness later, but I think that is a minor detail, the code to activate the lamp I got it here! and the Systemd service achieves this by looking at other services and testing.
I hope this small contribution has been useful to you and after more than a year within the community I managed to create an article for DesdeLinux: P. Salutes for all and successes o /