You are not logged in.

#1 2016-04-01 10:07:01

cloverskull
Member
Registered: 2015-10-01
Posts: 348

[SOLVED] Mouse cursor disappearing after wake from suspend (sid)

Hey guys,

Upgrading to sid went fairly well. One snag I hit is now after waking from sleep my mouse cursor is gone. The mouse still works but the cursor is totally gone. I'm using bl-lock. Version of light-locker is 1.7.0. Interestingly enough, the mouse cursor is totally visible in lightdm so I am able to use the mouse on the screen where I re-enter my account credentials, but when I am dropped back into openbox it is gone.

Workaround, for now, is to open a terminal and run

sudo unclutter -idle 1 -root -grab -visible

Last edited by cloverskull (2016-04-03 14:02:29)

Offline

#2 2016-04-01 10:16:51

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] Mouse cursor disappearing after wake from suspend (sid)

Try this:

sudo update-alternatives --config x-cursor-theme

Then reboot.

Does the cursor re-appear if you `pkill compton`?

You can run the `unclutter` command automatically immediately after waking from suspend by creating a file at /usr/lib/sytemd/system-sleep/cursor-fix (as root!) with this content:

#!/bin/sh
unclutter -idle 1 -root -grab -visible

Then save the file and make it executable:

sudo chmod +x /usr/lib/systemd/system-sleep/cursor-fix

See systemd-suspend.service(8)

Offline

#3 2016-04-01 17:00:07

cloverskull
Member
Registered: 2015-10-01
Posts: 348

Re: [SOLVED] Mouse cursor disappearing after wake from suspend (sid)

@HOAS - You're a genius. Your first recommendation worked perfectly. I was hesitant to use unclutter, because unless it's manually killed after running it'll run forever, which just seems inadequate.

Thanks!

Offline

#4 2016-04-01 22:11:54

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] Mouse cursor disappearing after wake from suspend (sid)

You're welcome smile

Please add [SOLVED] to the thread title for the benefit of others.

Offline

#5 2016-04-02 09:05:49

cloverskull
Member
Registered: 2015-10-01
Posts: 348

Re: [SOLVED] Mouse cursor disappearing after wake from suspend (sid)

Hrm, spoke too soon. After a fresh install of BL with a quick update to sid this fix is no longer working. Gonna try another one of your methods.

Offline

#6 2016-04-02 11:13:13

cloverskull
Member
Registered: 2015-10-01
Posts: 348

Re: [SOLVED] Mouse cursor disappearing after wake from suspend (sid)

pkill compton worked. Strange.

Offline

#7 2016-04-02 11:15:48

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] Mouse cursor disappearing after wake from suspend (sid)

cloverskull wrote:

pkill compton worked

Which version of compton are you using now?

apt-cache policy compton

The BunsenLabs jessie-backports repository has a newer version of compton available, perhaps this has b0rked your upgrade process somehow.

Offline

#8 2016-04-02 11:26:37

cloverskull
Member
Registered: 2015-10-01
Posts: 348

Re: [SOLVED] Mouse cursor disappearing after wake from suspend (sid)

Thanks for the help.

ryan@razer:~/Downloads$ apt-cache policy compton
compton:
  Installed: 0.1~beta2-1
  Candidate: 0.1~beta2-1
  Version table:
 *** 0.1~beta2-1 500
        500 http://httpredir.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status

Confirmed that if I comment out bl-compositor and reboot, everything works perfectly. But I have no compositing sad

Everything worked pre-sid.

Last edited by cloverskull (2016-04-02 11:26:51)

Offline

#9 2016-04-02 17:01:12

cloverskull
Member
Registered: 2015-10-01
Posts: 348

Re: [SOLVED] Mouse cursor disappearing after wake from suspend (sid)

Interestingly enough, if I use compton (default autostart file in BL for openbox), the mouse cursor is visible initially when I log in. Then once the screen locks, I move the mouse, the lightdm screen has a visible mouse, and then when I re-authenticate in lightdm to get my session opened back up, the mouse is gone. However, 'pkill compton' works.

Strange thing is, once I lock the screen again, and then unlock, the same problem happens. I have to fully remove compton/compositing from autostart.

Peculiar.

Anyone have any bright ideas?

Offline

#10 2016-04-03 09:11:05

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] Mouse cursor disappearing after wake from suspend (sid)

Have you tried using the latest version from upstream?

https://github.com/chjj/compton

Offline

#11 2016-04-03 11:30:26

cloverskull
Member
Registered: 2015-10-01
Posts: 348

Re: [SOLVED] Mouse cursor disappearing after wake from suspend (sid)

Seems to have miraculously fixed itself. It must have been an errant package in the land of sid that has since been repaired. Interestingly enough, I didn't notice any warnings from apt-listbugs. Either way it seems fixed now, so on to the next strange problem (pulse audio!). Thanks for all the help @HOAS.

Offline

#12 2016-04-06 10:55:16

cloverskull
Member
Registered: 2015-10-01
Posts: 348

Re: [SOLVED] Mouse cursor disappearing after wake from suspend (sid)

Eh, still happens sometimes. Oh well. pkill conky it is, then.

Offline

Board footer

Powered by FluxBB