Code Monkey home page Code Monkey logo

Comments (27)

alexoj avatar alexoj commented on September 17, 2024 28

I had this issue (mouse working, all keypresses logged as keycode 204) and got it to work by using ssh -Y instead of ssh -X when starting the program (i.e: ssh -Y plasma.local x2x -west -to :0.0).

from x2x.

thapakazi avatar thapakazi commented on September 17, 2024 5

@rhoit thanks dai -Y falg worked for me:
ssh -YC [email protected] 'x2x -east -to :0.0'

worked

from x2x.

richteer avatar richteer commented on September 17, 2024 2

Quick fix: Works for me by changing line 2071 of x2x.c to:

  keysym = XkbKeycodeToKeysym(pDpyInfo->toDpy, pEv->keycode, 0, 0);

I do not know the implications of this, but I'd have to guess that it wouldn't use the keyboad settings on the remote machine.

I also noticed by enabling debug that the above function returns a (null) keypress, so there might be something strange with the connection to that X server.

Additional note: Running on Arch -> Arch using i3 on both.

from x2x.

oserin avatar oserin commented on September 17, 2024 1

THY

from x2x.

doctorcolossus avatar doctorcolossus commented on September 17, 2024

Confirmed -- same problem between two netbooks. Tested using i3 and dwm window managers and in plain x. Keyboard input does appropriately cease on the local machine, but there is no apparent effect on the remote machine. xev on the remote machine actually does pick up keystrokes, but all keypresses are logged as keycode 204, NoSymbol.

from x2x.

djeis97 avatar djeis97 commented on September 17, 2024

Having exactly the same issue between my two arch machines. I recently switched one of them to Arch from Ubuntu though (and x2x was working fine between them then), so perhaps the problem has to do with Arch vs. Ubuntu?

from x2x.

 avatar commented on September 17, 2024

Same here, between 2 arch machine, one on i3 and one on xmonad

from x2x.

djeis97 avatar djeis97 commented on September 17, 2024

Although I'm not sure it'll be of any use, both of my machines were running awesome.

from x2x.

 avatar commented on September 17, 2024

It's strang my terminal seems to respond to keystroke (the flashing cursor respond to my hitting keys, but no characters are displayed).

from x2x.

djeis97 avatar djeis97 commented on September 17, 2024

Do you have a copy of xev on the machine you're connecting to? Check to see if you get the same results as doctorcolossus.

from x2x.

 avatar commented on September 17, 2024

yes indeed, same as doctorcolossus - then I wonder if it's just a question of setxkbmap ??

from x2x.

 avatar commented on September 17, 2024

I wonder if x2x depend on the xorg.conf ? If you have one on your ubuntu and none on the arch you could try to copy one over the other, mainly the one about keyboard?

from x2x.

barak avatar barak commented on September 17, 2024

Would it make sense to make that patch? Or maybe add it as a command line option?

from x2x.

djeis97 avatar djeis97 commented on September 17, 2024

I guess that depends where the actual issue is- x2x or the x server connection. Changing the decode from using the "from" x to using the "to" x has some important implications, I think. Might even actually be an extra feature to make that a command line option, but idk exactly how useful it would really be.

from x2x.

traverseda avatar traverseda commented on September 17, 2024

Same problem here.

from x2x.

rhoit avatar rhoit commented on September 17, 2024

thanx @alexoj -Y worked for me!

from x2x.

rbalman avatar rbalman commented on September 17, 2024

worked for me too. Thanks @thapakazi 😄

from x2x.

eBug avatar eBug commented on September 17, 2024

ssh -Y doesn't make a difference here. Letter keys work fine, but numbers are messed:
both 11 and 12 keycodes show as keycode 77 for example.

from x2x.

bnaysakya avatar bnaysakya commented on September 17, 2024

worked for me too. Thanks @alexoj @thapakazi 🙇‍♂️

from x2x.

vext01 avatar vext01 commented on September 17, 2024

-Y worked here between a Linux and OpenBSD machine.

from x2x.

Avamander avatar Avamander commented on September 17, 2024

-Y didn't work for me on KUbuntu->KFedora. Both PCs have the same physical keyboard and software keyboard layout and DE so there should be no keycode incompatibilities.

from x2x.

Avamander avatar Avamander commented on September 17, 2024

@barak

Would it make sense to make that patch? Or maybe add it as a command line option?

If it existed as a cli option it would theoretically give people the ability to try another fix before coming to issue tracker.

from x2x.

dottedmag avatar dottedmag commented on September 17, 2024

Unfortunately, there is not enough information to understand if this is a bug, a number of different bugs or a misconfiguration.

from x2x.

Avamander avatar Avamander commented on September 17, 2024

What information is missing, I can probably test things out.

from x2x.

dottedmag avatar dottedmag commented on September 17, 2024

At least xev output from both machines.

However note that the project is dormant, so it will have to wait until a new maintainer steps in and solves the number of accumulated problems.

from x2x.

progfou avatar progfou commented on September 17, 2024

@Avamander, could it be because you are opening a Wayland session (default choice in Ubuntu, may be default in KUbuntu too) instead of an Xorg session?

Since a lot of people (including me) got this keyboard-only-problem “solved” with the ssh -Y option, it looks like it is just about a security control in the way of x2x (cf "man ssh", -Y option). The other case I know for x2x not working is when we use Wayland instead of Xorg. Both these cases are not bugs but only usage/configuration issues. So, IMHO, this bug report could be closed as “not a bug”, with comment from @alexoj set as a working solution.

from x2x.

Avamander avatar Avamander commented on September 17, 2024

@progfou

Could it be because you are opening a Wayland session (default choice in Ubuntu, may be default in KUbuntu too) instead of an Xorg session?

No. KDE on Wayland is very experimental still.

I will investigate ssh -Y

from x2x.

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.