Coder Social home page Coder Social logo

Comments (22)

lostallmymoney avatar lostallmymoney commented on August 26, 2024

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

Also it'd be nice to have a clean log from the building of nagaWayland.cpp ,
try running from inside the main folder :
g++ -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/dbus-1.0 ./src/nagaWayland.cpp -o ./src/nagaWayland -pthread -Ofast --std=c++2b -ldbus-1
and post the logs here if you are willing ! Thanks

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

Also I'm starting to have issues with my side pannel button starting to die. I was having doubts and confusion before I realised trying to debug ahah. I'm wondering if your XF86AudioRaiseVolume macro isn't linked to a dead sidepanel button too ;)

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

P.S.
you can list the currently selected keycodes (to see if you have more than one XF86AudioRaiseVolume) using:

$ xmodmap -pk

If you have more than one keycode it's reported not to work, a KDE bug. Try disabling with something like
$ xmodmap -e "keycode 175 ="

Post is from 2006 tho and is supposedly fixed.

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

Also idk if it could be related but if you ever start a shell only session and start naga inside of it you won't be able to restart it before you shutdown inside the shell session. So if you got that zombie state that might be something to look into. You might have to import the environment in X11 just like I do with wayland.

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

I also get this issue if I run X11 then log out and log into Wayland.
Although this will output one more error line that looks like a command was poorly parsed and is trying to run in two commands :
loginctl[9146]: Failed to get session path: No session '5
loginctl[9146]: 7' known
Before giving the same error as you.
What I am noticing tho is that it's trying to run X11 under Wayland.

So the error here is that the piping to is wrong and trying to pipe multiple results in this case. I am making a fix rn for this one.

from razer_mouse_linux.

Stibax avatar Stibax commented on August 26, 2024

Tell me if "naga start" works. I got that error on wayland when it was trying to start before any user logged in. If it does work, try the command "who", count the number of rows, if you are above of 2 rows on a cleanly booted system maybe there's more sessions running so it would start too early. Go inside of NagaServerCatcher and set the -lt condition to the number of outputs from who : while [ "$(who | wc -l)" -lt 2 ]; do -> while [ "$(who | wc -l)" -lt 3 ]; do Tell me if it works. Thanks

Hi,
if i do naga start it won't start and naga debug give me the same error.
the who command print this on fresh start:

stibax tty2 2024-03-02 17:06 (:0)
stibax pts/0 2024-03-02 17:06 (:0)

So if i understand well, it's correct?

from razer_mouse_linux.

Stibax avatar Stibax commented on August 26, 2024

g++ -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/dbus-1.0 ./src/nagaWayland.cpp -o ./src/nagaWayland -pthread -Ofast --std=c++2b -ldbus-1

It says:

In file included from ./src/nagaWayland.cpp:7:
/usr/include/dbus-1.0/dbus/dbus.h:29:10: fatal error: dbus/dbus-arch-deps.h: File o directory non esistente
29 | #include <dbus/dbus-arch-deps.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

non esistente means not found

from razer_mouse_linux.

Stibax avatar Stibax commented on August 26, 2024

P.S. you can list the currently selected keycodes (to see if you have more than one XF86AudioRaiseVolume) using:

$ xmodmap -pk

If you have more than one keycode it's reported not to work, a KDE bug. Try disabling with something like $ xmodmap -e "keycode 175 ="

Post is from 2006 tho and is supposedly fixed.

No i don't have any duplicate keycode:

xmodmap -pk | grep Volume tell me ;

122 0x1008ff11 (XF86AudioLowerVolume) 0x0000 (NoSymbol) 0x1008ff11 (XF86AudioLowerVolume)
123 0x1008ff13 (XF86AudioRaiseVolume) 0x0000 (NoSymbol) 0x1008ff13 (XF86AudioRaiseVolume)

Now i go into manjaro that have in multi boot and i try to verify that the buttons are not faulty.
Because my naga mouse have in fact hardware issue, with cable plugged in when reach 20% of charging it won't work and i have to use it in wireless mode. So i think i would by another one.

from razer_mouse_linux.

Stibax avatar Stibax commented on August 26, 2024

Now the volume uo button works, it was only a fault contact. I have notice that in manjaro the command who show me only this:

stibax + tty2 2024-03-02 18:27 00:01 18618 (:0

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

Try installing libdir for the wayland installation.
You can try fiddling with xhost inside of nagaservercatcher to add more env variables to the session. You can also try to use the env file I created for the wayland session, but for X11. My guess is wrong display.

Try changing the display to :0 in nagaservercatcher

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

Try installing libdir for the wayland installation.
You can try fiddling with xhost inside of nagaservercatcher to add more env variables to the session (this might import the right dbus or display var). You can also try to use the env file I created for the wayland session, but for X11. My guess is wrong display.

Edit : Pardon me the environment should be imported inside of the service no matter what happens.

Naga uses display to send events to,
It also uses dbus to gather info about current windows.

Try adding a 10 second sleep after the verification if a logged in user is finished to prevent it to launch too early.

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

If all the above does not succeed, create a script to start on startup on KDE.
Start by manually disabling the service :
sudo systemctl naga stop

Then remove the persistence line i added to .profile :
--sudo systemctl start naga
(This may be the reason this is not working btw).

And for startup run this command inside of the script :
nagaX11 serviceHelper

This should bypass everything and work straight away as long as the timing of the execution is right.

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

Hey good news I got it running in garuda kde with wayland. I will not focus on X11 because wayland is better anyways in term of fps with dual monitors.

The first fix is the compiling, you can fix by changing the g++ line to :

g++ -I/usr/lib64/dbus-1.0/include -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/dbus-1.0 ./src/nagaWayland.cpp -o ./src/nagaWayland -pthread -Ofast --std=c++2b -ldbus-1

The second fix is to fix dotool and the includes for garuda.

Start by installing go.
extra/go
Then install scdoc

Then install naga and it should work.

from razer_mouse_linux.

Stibax avatar Stibax commented on August 26, 2024

Hi,
sorry for me wayland session is unstable. I have mouse trails, missing character in browser ecc ecc. I think it's bacause i have a nvidia card (rtx3080) i suppose you have and amd or intel! So for now i have to stay with x11.
in anyway i try the new g++ line and it work, it compile and start.
I have uninstall, delete the git repo. Redo the git clone and reinstall without wayland support and it finish the installation, but i notice this output during compile:

Compiling code...
./src/nagaX11.cpp: In static member function ‘static const void NagaDaemon::runAndWrite(const std::string*)’:
./src/nagaX11.cpp:369:51: warning: ignoring attributes on template argument ‘int ()(FILE)’ [-Wignored-attributes]
369 | unique_ptr<FILE, decltype(&pclose)> pipe(popen(macroContent->c_str(), "r"), pclose);
| ^
cp: not replacing '/home/stibax/.naga/keyMap.txt'

After installation it works as always but after reboot it doesn't work and naga debug give the error posted obove about:
Authorization required, but no authorization protocol specified.

Now i will try what you suggest, but some steps i cannot understand:

"try changing the display to :0 in nagaservercatcher"

in this file i have no line with display

The other solution you explain about a starting script, i don't understand this:

Then remove the persistence line i added to .profile :
--sudo systemctl start naga
(This may be the reason this is not working btw).

What you mean when you say ".profile" i have any file .profile.

Thanks again for you support.

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

from razer_mouse_linux.

Stibax avatar Stibax commented on August 26, 2024

hi,
i have try to install the version 14,20 but the same errora accurs. I make some research about the error that lead me to the xauthority file. Because i haven't any knowledge of coding script, for what i understand the problem is that when start it doesn't know the corract display where x11 is? I've notice that in Garuda i have no xauthority file like i had in manjaro, but in the /tmp folder. I've found this thread https://www.reddit.com/r/archlinux/comments/15s33yk/xauthority_file_in_tmp_and_not_in_user_home/
but i haven't the knowledge to understand if it is related or not to my problem.
Thanks

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

Some people reported installing xorg-host to fix similar issue.
You may verify that the group is still permanent (razerInputGroup).
You can also modify the setup to reinstall everytime you startup for now ahah !
Also try pulling the logs from when it's working.

There's also :
https://forum.manjaro.org/t/xauthority-file-getting-deleted-while-system-is-running/152985
Which involves recreating some temp files.
You could potentially rewrite that file from nagaServerCatcher.

from razer_mouse_linux.

lostallmymoney avatar lostallmymoney commented on August 26, 2024

Is this still an issue ? Since wayland can be run on X11, I suggest for anyone to replace nagaServerCatcher with :
#!/bin/sh
#Finds the visual server and starts the right one
while [ "$(who | wc -l)" -lt 2 ]; do
sleep 1
done
echo "Starting Wayland"
gnome-extensions enable [email protected]
killall dotoold >/dev/null 2>&1
setsid bash -c 'dotoold' &
if [ $# -eq 0 ]; then
nagaWayland serviceHelper
else
nagaWayland serviceHelper $1
fi

This should make it use dotool only and be compatible on X11 with less functionnality but witth most of the essential stuff.
If anything else is needed please contact me and I might be able to troubleshoot one day !

from razer_mouse_linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.