Re: PLEASE! Input Attach Service
> As for any service these values are already documented [1]. > Make sure that you are reading an up to date version of the manual. Ah I see. Sure, I can check. > The wacom device type is already the default. As inputattach can be > used > for many device types I would not want to change the default values > to > suit our specific needs. Oh no, I did not want to change the default values just so it works for me. :-) > I don't even know whether the /dev/ttyS4 port is a constant among > x200t thinkpads. It appears tyyS4 is constant among x200-t devices, as it worked for both of us. You could make it the default value and you could change if you encounter any new facts. Regards, RG.
Re: PLEASE! Input Attach Service
Raghav Gururajan writes: > Sure ☺. Btw, could you expand/update the "inputattach-service-type" of > the Guix Manual, to include "inputattach-configuration" scheme > parameters/procedures and it's possible cum default values? Thanks! As for any service these values are already documented [1]. Make sure that you are reading an up to date version of the manual. > Btw, would you be able to set the default vaules of "device" and > "device-type" to "/dev/ttyS4" and "wacom" respectively for > "inputattach-configuration"? The wacom device type is already the default. As inputattach can be used for many device types I would not want to change the default values to suit our specific needs. I don't even know whether the /dev/ttyS4 port is a constant among x200t thinkpads. Tim. [1] https://www.gnu.org/software/guix/manual/en/guix.html#Miscellaneous-Services
Re: PLEASE! Input Attach Service
On Mon, 2019-07-01 at 14:17 -0400, Raghav Gururajan wrote: > > On my thinkpad every serial port except the one for the touchscreen > > is > > completely dead AFAIK. So yes that would be a good sign. > > Just try whether serial port 4 works. While thinkpads can be wired > > differently it is very unlikely that your thinkpad has the > > touchscreen > > attached on a different port. > > Thank you! I will try S4 and get back to you. ☺ It works now ☺ Thank you very much > Btw, would you be able to set the default vaules of "device" and > "device-type" to "/dev/ttyS4" and "wacom" respectively for > "inputattach-configuration"? Regards, RG.
Re: PLEASE! Input Attach Service
> On my thinkpad every serial port except the one for the touchscreen > is > completely dead AFAIK. So yes that would be a good sign. > Just try whether serial port 4 works. While thinkpads can be wired > differently it is very unlikely that your thinkpad has the > touchscreen > attached on a different port. Thank you! I will try S4 and get back to you. ☺ Btw, would you be able to set the default vaules of "device" and "device-type" to "/dev/ttyS4" and "wacom" respectively for "inputattach-configuration"? Regards, RG.
Re: PLEASE! Input Attach Service
> It's not what I'd naively expect, but sure. Maybe the protocol > expects some kind of ACK and keeps retransmitting otherwise. > Maybe the protocol's weird. Ah I see! The output was just tiny black circles with embedded question mark. > > Is this a good sign that my touch screen is > > attached to serial port 4? > > Yes! Cool! Thanks. Regards, RG.
Re: PLEASE! Input Attach Service
Raghav, Raghav Gururajan wrote: So I did "sudo cat /dev/ttyS4" in the terminal. After 10 seconds, the cursor blinking stopped, This is probably just your terminal emulator helpfully stopping the cursor blink after 10 ‘idle’ seconds to save a tiny bit of power, not related to the serial port. then I touched the screen with the pen, it started giving output non-stop. Like the output never stopped, I had to close the terminal. It's not what I'd naively expect, but sure. Maybe the protocol expects some kind of ACK and keeps retransmitting otherwise. Maybe the protocol's weird. Is this a good sign that my touch screen is attached to serial port 4? Yes! Kind regards, T G-R signature.asc Description: PGP signature
Re: PLEASE! Input Attach Service
> Just ‘cat /dev/ttySn’ will work, or something silly like ‘LANG=C > sed s/./blah/g to run ‘reset’ afterwards. > > Then use your pen and wait for output. Thanks! So I did "sudo cat /dev/ttyS4" in the terminal. After 10 seconds, the cursor blinking stopped, then I touched the screen with the pen, it started giving output non-stop. Like the output never stopped, I had to close the terminal. Is this a good sign that my touch screen is attached to serial port 4? Regards, RG.
Re: PLEASE! Input Attach Service
Raghav, Raghav Gururajan wrote: Sorry, I am not aware of what tools you are reffering to. Are you suggesting hardware tools or software tools? If it is the latter, can you please mention an easiest tool name and the syntax for checking for serial ports? Just ‘cat /dev/ttySn’ will work, or something silly like ‘LANG=C sed s/./blah/g to run ‘reset’ afterwards. Then use your pen and wait for output. Kind regards, T G-R signature.asc Description: PGP signature
Re: PLEASE! Input Attach Service
Hi Raghav, Raghav Gururajan writes: > Hello Tim! > > Hope you are doing good and sorry if I am disturbing you. I have been > told that "inputattach" service was added by you. Could you please help > me with the issue? No, you're not disturbing me. Feel free to ask. It just happens to be, that I added inputattach to Guix because I also needed it for the touchscreen on my x200-t to work. My current configuration has === (service inputattach-service-type (inputattach-configuration (device "/dev/ttyS4") (device-type "wacom"))) === added to its services. Thats working for me. If this does not fix the problem for you, than your touchscreen is probably connected to another serial port: - Use a tool of your choice to read the current text from one of the serial ports ("/dev/ttySxxx" where xxx is any number). - Point on your display with your pen. If random characters start to pop up from the serial connection, this is the correct serial port. - Replace your serial device with the one in my configuration. Please note that this is a pretty adhoc approach that I added to Guix so that it works for my setup, hoping that it could help others. When there are issues or whishes concerning the documentation or if things just don't work for you, please let me know. Tim.
Re: PLEASE! Input Attach Service
> No, you're not disturbing me. Feel free to ask. Thanks! > It just happens to be, that I added inputattach to Guix because I > also > needed it for the touchscreen on my x200-t to work. I see. > My current configuration has > > === > (service inputattach-service-type > (inputattach-configuration > (device "/dev/ttyS4") > (device-type "wacom"))) > === > > added to its services. Thats working for me. Thanks! I did use the above config but without the "device" and "device-type" field. The error message I saw during system boot was "InputAttach: Cannot set device type". So I am thinking the service did actually detect the touchscreen of my x200-t, but could not set the device-type?? But for sure I will try using your config as it is and let you know ☺ > If this does not fix the problem for you, than your touchscreen is > probably connected to another serial port: > > - Use a tool of your choice to read the current text from one of the > serial ports ("/dev/ttySxxx" where xxx is any number). > - Point on your display with your pen. If random characters start to > pop > up from the serial connection, this is the correct serial port. > - Replace your serial device with the one in my configuration. > Sorry, I am not aware of what tools you are reffering to. Are you suggesting hardware tools or software tools? If it is the latter, can you please mention an easiest tool name and the syntax for checking for serial ports? > Please note that this is a pretty adhoc approach that I added to Guix > so > that it works for my setup, hoping that it could help others. When > there > are issues or whishes concerning the documentation or if things just > don't work for you, please let me know. Sure ☺. Btw, could you expand/update the "inputattach-service-type" of the Guix Manual, to include "inputattach-configuration" scheme parameters/procedures and it's possible cum default values? Thanks! Regards, RG.
Re: PLEASE! Input Attach Service
On Wed, 2019-06-26 at 19:22 -0400, Raghav Gururajan wrote: > On Wed, 2019-06-26 at 19:15 -0400, Raghav Gururajan wrote: > > On Tue, 2019-06-11 at 19:21 -0400, Raghav Gururajan wrote: > > > Hello Guix! > > > > > > I have been trying to make "inputattach-service-type" work on my > > > x200-t, but it > > > never works. During boot I see a warning/error message > > > "inputattach: > > > can't set > > > device type". Can someone please help with this? > > > > > > Regards, > > > RG. > > > > Hello Folks! > > > > Anyone have any ideas for this issue please? > > > > Regards, > > RG. > > Just CCing T-G-R for insight. Hello Tim! Hope you are doing good and sorry if I am disturbing you. I have been told that "inputattach" service was added by you. Could you please help me with the issue? Thank you! Regards, RG.
Re: PLEASE! Input Attach Service
On Wed, 2019-06-26 at 19:15 -0400, Raghav Gururajan wrote: > On Tue, 2019-06-11 at 19:21 -0400, Raghav Gururajan wrote: > > Hello Guix! > > > > I have been trying to make "inputattach-service-type" work on my > > x200-t, but it > > never works. During boot I see a warning/error message > > "inputattach: > > can't set > > device type". Can someone please help with this? > > > > Regards, > > RG. > > Hello Folks! > > Anyone have any ideas for this issue please? > > Regards, > RG. Just CCing T-G-R for insight.
Re: PLEASE! Input Attach Service
On Tue, 2019-06-11 at 19:21 -0400, Raghav Gururajan wrote: > Hello Guix! > > I have been trying to make "inputattach-service-type" work on my > x200-t, but it > never works. During boot I see a warning/error message "inputattach: > can't set > device type". Can someone please help with this? > > Regards, > RG. Hello Folks! Anyone have any ideas for this issue please? Regards, RG.