Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Moving cursor to the side of the montior causes dwm to move
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Snow-0
n00b
n00b


Joined: 02 May 2021
Posts: 23

PostPosted: Sun Jun 13, 2021 7:04 pm    Post subject: Moving cursor to the side of the montior causes dwm to move Reply with quote

After rebooting my computer and logging into dwm, gentoo started to act unusual. My secondary monitor is not detected through xrandr.

Moving my cursor to the right side of the primary monitor causes dwm to move in the opposite direction. I can bring dwm back by moving my cursor on the left side.

I thought it was a something with the nvidia drivers so I reinstalled but that doesn't solve the issue.

Here is how it looks: https://imgur.com/a/ujZmcgY
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Sun Jun 13, 2021 7:16 pm    Post subject: Reply with quote

Looks like your virtual screen size is larger than your physical screen size. :)

Please post your xorg.conf and your /var/log/Xorg.0.log. You may want to use wgetpaste to post your Xorg.0.log.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sun Jun 13, 2021 7:26 pm    Post subject: Reply with quote

Snow-0,

That's a feature, not a bug.

You are sliding your ViewPort around on your virtual desktop.
Xorg has always provided that but its not much used today.

I suspect that Xorg is drawing the pixel buffer as intended but displaying it on one display.

The files that mike155 requested will help the diagnosis.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Snow-0
n00b
n00b


Joined: 02 May 2021
Posts: 23

PostPosted: Sun Jun 13, 2021 8:13 pm    Post subject: Reply with quote

I don't have a xorg.conf file but instead have a xorg.conf.d. The only thing there is my mouse sensitivity config.

Here is my /var/log/Xorg.0.log: https://dpaste.com/CJRCUPL5F
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sun Jun 13, 2021 10:07 pm    Post subject: Reply with quote

Snow-0,

That Xorg.0.log says that Xorg didn't work at all.
Code:
[   222.597] (EE) no screens found(EE)
because your have DRI support missing in your kernel.
Code:
[   222.597] (EE) open /dev/dri/card0: No such file or directory


dwm cannot work like that, so that's not the Xorg.0.log file that we need.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Snow-0
n00b
n00b


Joined: 02 May 2021
Posts: 23

PostPosted: Sun Jun 13, 2021 11:06 pm    Post subject: Reply with quote

There's another log file that's named Xorg.0.log.old: https://dpaste.com/3S6WD83WB

I found out these two lines in my .xinitrc file causes the sliding to occur

Code:

xrandr --output DP-2 --primary --mode 1920x1080 --rate 144 --left-of DP-4 &
xrandr --output DP-4 --mode 1920x1080 --rate 144 --right-of DP-2 &


I commented these two lines out and the sliding stopped, but now the refresh rate is at 60 instead of 144. I tried adding my monitor settings to a monitor.conf and having it in /etc/X11/xorg.conf.d but the changes don't take effect.

Code:

Section "Monitor"
        Identifier      "DP-2"
        Option          "Primary" "true"
        Option          "LeftOf" "DP-4"
        Modeline "1920x1080_144.00"  451.72  1920 2080 2296 2672  1080 1081 1084 1174  -HSync +Vsync
EndSection


Section "Monitor"
        Identifier      "DP-4"
        #Option         "RightOf" "DP-2"
        Modeline "1920x1080_144.00"  451.72  1920 2080 2296 2672  1080 1081 1084 1174  -HSync +Vsync
EndSection
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sun Jun 13, 2021 11:19 pm    Post subject: Reply with quote

Snow-0,

Code:
Fatal server error:
[    57.910] (EE) no screens found(EE)

So that's not it either.

Your Xorg.0.log is only is /var/log if xorg is run suid root. For most users, that's not true any more.
The log will be in ~ somewhere.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Snow-0
n00b
n00b


Joined: 02 May 2021
Posts: 23

PostPosted: Sun Jun 13, 2021 11:47 pm    Post subject: Reply with quote

I didn't find any log files in ~

I did a
Code:
locate Xorg.0.log
and found some log files in my /home/$user/ .local/share/xorg/

Xorg.0.log: https://dpaste.com/2DKRNBATN
Xorg.0.log.old: https://dpaste.com/5K4E7CPD3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum