mafredri / magic4linux Goto Github PK
View Code? Open in Web Editor NEWAllows you to use the magic remote on your webOS LG TV as a keyboard/mouse for your Linux machine
License: MIT License
Allows you to use the magic remote on your webOS LG TV as a keyboard/mouse for your Linux machine
License: MIT License
Hello and thank you for this great piece of software! Everything works great, except from the scrolling speed of the wheel that is way too fast, which makes it practically unusable.
Hi there,
many thanks for your nice app!
I had some discussion on the server project (Wouterdek/magic4pc#25) about the position of the TV cursor (which seemingly cannot be turned off) and the mouse pointer. It turned out that I had mouse acceleration at factor 2 which made the two pointers moving at different speed.
I found this a bit unexpected as your code emulates a touchpad and sets absolute positions. But I assume that this has something to do how the mouse acceleration is implemented in the Desktop / X11 window system.
So this is rather not a bug. Maybe this could be documented in the README.md.
Have it all moving the mouse, and a magic green button for the space bar (found by mistake)... problem is that I have no clicky clicks?
Is there a known setting how to configure the firewall to make this work -- without turning the firewall off?
Thank you!
TV info:
Model: LG OLED55C11LB
WebOS version: 6.2.0-35 (kisscurl-kavir)
System version: 3.21.20
Rooted with https://rootmy.tv/
PC info:
Some little older desktop PC with i7-4770 and Archlinux
First of all thanks for great app.
Unfortunately, these are only 3 things which are working for me out of box:
From my point of view, just Left Click/Right Click are missing here. I mean, this cannot be fully comfortable experience as with real keyboard and mouse, but on the other hand you will not programming or 3d modeling on TV 😂, so I suppose for most of the people would be sufficient to have scrolling, left/right click, and some key shortcut/macro to call virtual on-screen keyboard, while using PC as media center.
I was try to remap middle button on remote to be left click, but without success. This middle button on remote is sending ENTER event (Return). I tried with Linux Input Remapper. I can see in Input Remapper that your app is creating 3 virtual devices - keyboard, mouse and touchpad, but it seems it is not possible to assign mouse event (BTN_LEFT) to keyboard button (Return). I mean, it is possible to assign and apply it inside Input Remapper, but it has no effect. Just for note: I can assign some keyboard event to this middle button, e.g. if I assign letter "a", this is working - clicking on remote middle button is typing "a" on PC screen, but assigning BTN_LEFT is not working - keyboard continues to "typing" default option - ENTER.
If I run sudo evtest
....
..... there is no BTN_xxxx events, as supported for magic4linux-keyboard
BTN_xxxx events could be found in magic4linux-mouse
, but unfortunately, magic4linux-mouse
is not sending any event on any remote button click.
Sorry if this post is confused, in short: Is it anyhow possible to enable left and right mouse clicks on remote?
Many thanks.
(deck@steamdeck go)$ go install github.com/mafredri/magic4linux/cmd/magic4linux@latest
go: github.com/mafredri/magic4linux/cmd/magic4linux@latest (in github.com/mafredri/[email protected]):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
https://github.com/mafredri/magic4linux/blob/main/cmd/magic4linux/main.go#L112
Assume copy and paste error :)
Would be cool to run it on Raspberry Pi and possibly on Android TV somehow too.
Hi! I am interested to recreate the same for android TV.
Thank you!
Hi, I am trying to run this on organipi5b arm64, followed the steps from readme.
My go version is - go version go1.20.5 linux/arm64
git clone https://github.com/mafredri/magic4linux.git
cd magic4linux/cmd/magic4linux
GOOS=linux GOARCH=arm64 go build
╭─orangepi@orangepi5b in ~/Downloads/magic4linux/cmd/magic4linux on main ✔ (origin/main)
╰$ ./magic4linux
panic: failed to create virtual keyboard device: could not open device file
goroutine 1 [running]:
main.main()
/home/orangepi/Downloads/magic4linux/cmd/magic4linux/main.go:28 +0xd8
Any idea what I could be missing? Also I wonder if I should pass in the ip address of my TV or anything? Any advice is massively appreciated.!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.