On resume from suspend (to memory) two problems occur at my desktop machine
1) the wired network is usually (but not always) not connected properly. It has IP address, but it has no default gateway. I have to manually disconnect the network and reconnect it. It uses DHCP through the network manager.
Route shows something like this:
Aftehr the reconnect the line gets added
and the network works again
I try to fix it by adding a script like this to /etc/pm/sleep.d, but it does'nt seem to get called.
running this script manually with resume works fine and restores the network as it should.
2) kwin sometimes shows a distorted picture after unlocking the screen. The unlock screen looks fine, but the screen looks like a patch work of the original desktop. running kwin_x11 --replace must be run to restore the proper desktop.
Any thoughts on how to fix either problem?
On the previous version of Kubuntu it all worked fine.
1) the wired network is usually (but not always) not connected properly. It has IP address, but it has no default gateway. I have to manually disconnect the network and reconnect it. It uses DHCP through the network manager.
Route shows something like this:
Code:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
Code:
default 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
I try to fix it by adding a script like this to /etc/pm/sleep.d, but it does'nt seem to get called.
Code:
#!/bin/sh ase "${1}" in resume|thaw) nmcli d disconnect eth0 nmcli d connect eth0 ;; esac exit 0
2) kwin sometimes shows a distorted picture after unlocking the screen. The unlock screen looks fine, but the screen looks like a patch work of the original desktop. running kwin_x11 --replace must be run to restore the proper desktop.
Any thoughts on how to fix either problem?
On the previous version of Kubuntu it all worked fine.
Comment