Hey guys!
Need your help.
I’ve experienced problems with networking after suspend.
Solved that with:
PROGNAME=$(basename “$0”)
state=$1
action=$2function log {
logger -i -t “$PROGNAME” “$*”
}log “Running $action $state”
if [[ $state == post ]]; then
sudo modprobe -r sky2
&& sudo modprobe -r skge
&& log “removed eth”
&& sleep 1
&& sudo modprobe -i sky2
&& sudo modprobe -i skge
&& log “inserted eth”
fi
sudo cp -r ~/Downloads/eth-refresh.sh /lib/systemd/system-sleep/eth-refresh.sh
chmod +x /lib/systemd/system-sleep/eth-refresh.sh
And this works flawless on my current Elementary OS.
Now, I’m experiencing another problem with resolution, it is blurry and almost not readable.
I’ve tried with same solution:
PROGNAME=$(basename “$0”)
state=$1
action=$2if [[ $state == post ]]; then
xrandr --output DVI-0 --mode 1440x900
&& sleep 3
&& xrandr --output DVI-0 --mode 1680x1050
fi
sudo cp -r ~/Downloads/res-refresh.sh /lib/systemd/system-sleep/res-refresh.sh
sudo chmod +x /lib/systemd/system-sleep/res-refresh.sh
^ but this does not work.
Than I’ve tried with service:
[Unit]
Description=Fix resolution blur after resume from suspend
After=suspend.target[Service]
User=root
Type=oneshot
ExecStartPre=xrandr --output DVI-0 --mode 1440x900
ExecStart=xrandr --output DVI-0 --mode 1680x1050
TimeoutSec=0
StandardOutput=syslog[Install]
WantedBy=suspend.target
sudo cp -r ~/Downloads/susres.service /etc/systemd/system/susres.service
systemctl enable susres.service
^ and even this does not work.
But when I change resolutions manually form the terminal, it just works.
Can you please take a look on this and tell me where I might be wrong / what I’m doing incorrectly?
Thank you in advance!