[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-misc
Subject:    7.5 stable wsmoused question
From:       mindfsck <mindfsck () gmail ! com>
Date:       2024-05-11 15:14:37
Message-ID: CAFCXF-9M8dzOmhs9itggXmaRyeKpw0nOvSKnTVFhdORWVwEYYw () mail ! gmail ! com
[Download RAW message or body]

Hello,

I am trying to narrow down an issue (and learn along the way) with
wsmoused. The issue is:
- X (wsfb) is running with xfce4 and xenodm, the mouse works fine in X.
- I go to a console and execute wsmoused (as root) with no parameters, so
as per sources, /dev/wsmouse is opened.
- I have a working mouse cursor now on the console.
- Going back to X (ctrl-alt-F5)
- Here the mouse seems to still be in console mode, the framebuffer is
getting riddled when moving the mouse and the black background of the
console comes to light.

Ok, this is the issue, but more importantly is my question :-)

I tried the following:
1) wrote a C program that opens /dev/wsmouse and checks perror output.
2) running this as root on the console works (no error).
3) running this as root inside X gives me a "device busy".

I am puzzled re. (3)! How does it know that I'm in X?

[Attachment #3 (text/html)]

<div dir="ltr"><div>Hello,</div><div><br></div><div>I am trying to narrow down an \
issue (and learn along the way) with wsmoused. The issue is:<br></div><div>- X (wsfb) \
is running with xfce4 and xenodm, the mouse works fine in X.</div><div>- I go to a \
console and execute wsmoused (as root) with no parameters, so as per sources, \
/dev/wsmouse is opened.<br></div><div>- I have a working mouse cursor now on the \
console.<br></div><div>- Going back to X (ctrl-alt-F5) <br></div><div>- Here the \
mouse seems to still be in console mode, the framebuffer is getting riddled when \
moving the mouse and the black background of the console comes to \
light.<br></div><div><br></div><div>Ok, this is the issue, but more importantly is my \
question :-)<br><br></div><div>I tried the following:<br></div><div>1) wrote a C \
program that opens /dev/wsmouse and checks perror output.<br></div><div>2) running \
this as root on the console works (no error).<br></div><div>3) running this as root \
inside X gives me a &quot;device busy&quot;.<br><br></div><div>I am puzzled re. (3)! \
How does it know that I&#39;m in X?<br></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic