-
Notifications
You must be signed in to change notification settings - Fork 33
output-rotation, mouse-selection, gyro-sensor support, kmscon.conf manpage #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…branch to aetf's meson-based develop branch.
…-upstream branch to aetf's meson-based develop branch.
…ch to aetf's meson-based develop branch.
|
Hi, I've been trying to use this patch in conjunction with #71, it seems that kmscon_mouse.c requires linking to libm (fmod), which isn't done in |
|
I see... I will look into it this afternoon.
Best regards...
MacSlow
Takase ***@***.***> schrieb am Sa., 7. Okt. 2023, 05:37:
… Hi, I've been trying to use this patch in conjunction with #71
<#71>, it seems that kmscon_mouse.c
requires linking to libm (fmod), which isn't done in meson.build and
src/meson.build. I kept on getting linking errors without doing that.
—
Reply to this email directly, view it on GitHub
<#75 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWFRKSVEE2CGGX5RPWTK73X6DFA3AVCNFSM6AAAAAA2VVVRQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGU4DKNZQGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I looked at this again on a different machine and cannot reproduce the linking issue with regards to libm. I locally merged skyvine's desired-width/height branch with my PR and do not get any linking issues. I used an Ubuntu 22.04.3 LTS machine with the usual build-essential packages. Do you perhaps still have a log-file of the failing compile/linking step? |
|
@MacSlow Since I seem to have similar issues let me paste my output: |
|
What worked for me is to add: in |
This is not the correct way to fix it, the correct way is to use compiler.find_library('m') and add it as a dependency. |
|
Thanks @takase1121! That worked as well, at top: and then: |
…licitly add it (like mine). Thanks to users 'takase1121' and 'obrmao' on github.com for the heads-up.
|
Greetings takase1121 & obrmao! I added your suggestions to my branches hoping it will avoid other people running into the same issue. Still, I could not reproduce the stated problem on my systems (ubuntu 22.04 and debian 12). But adding that explicit library-dependency does not hurt :) |
|
Thank you so much for the PR ! @MacSlow unfortunately I don't have much time review such a large one nowadays. I'd appreciate it if you could reduce it into several smaller ones like you suggested. 🙏 |
Oh... hey Aetf! :) How small are we talking? Are the four PR, which build upon each other, still too large? I could try so see how much further I could slice and dice them. That will not happen in the next few days - load from work is a bit intense at the moment... took me some time to reply here, right :) - but I gladly do whatever is needed to move stuff 'upstream' and avoid forking! Best regards... MacSlow |
|
Thanks. Was looking at the all commits page. Your commit messages look reasonable (appreciate that!). I'll give it a try. Can't promise anything though. Same with work here - I have much less time than I would like to spend on OSS :-p |
|
oh hey you're back hopefully we get gpm into kmscon |
|
I know it's very late, but I've taken a look at this PR. Mouse support:
Rotation:
Man page:
If you don't mind, I will split this in 3 PR. I think the man page can be merged quickly, the two others need more refinement. |
|
Regarding rotation, there is also a drm property, so that the rotation is done in hardware: |
Interesting... while initially searching for that, nothing like that was shown in search-results :) |
|
@MacSlow I've rebased and reworked a bit your rotation patches, and added support for the pixman renderer. I'll submit another PR when I've also the bbulk renderer support. I didn't use the drm properties, because there is no support in virtual drivers, so it's more difficult to test. |
Oh, very nice!
Yeah, I was not aware of those even existing. |
|
I've started to look at mouse support. This allows to work with the seat support (so it should be possible to specify which mouse to connect to which seat, along with keyboards). I will send a PR when it's ready. |
|
For output-rotation and gyro-sensors take into account panel orientation quirks for some devices with non-standard oriented panels. I think gyro transformation matrix in udev is not necessary to take into account. This issues I think that should be achieved in a general way for linux because for example mutter takes them into account but actually kwin is not aware and is needed to be coded per graphical program that manages the output but is out of scope. |
This is the whole bunch of all the features I added to kmscon (now based on aetf's 'develop' branch). It is output-rotation support, mouse selection/cut/paste support, gyro-sensor support and finally an additional man-page, which documents the configuration-file 'kmscon.conf'.
Each feature/patch also exists as a single branch (building on top of each other), if you prefer smaller chunks. I am trying to make this as easy for review and testing as possible.