all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* PLEASE! Input Attach Service
@ 2019-06-11 23:21 Raghav Gururajan
  2019-06-26 23:15 ` Raghav Gururajan
  0 siblings, 1 reply; 14+ messages in thread
From: Raghav Gururajan @ 2019-06-11 23:21 UTC (permalink / raw)
  To: help-guix

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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
  2019-06-11 23:21 PLEASE! Input Attach Service Raghav Gururajan
@ 2019-06-26 23:15 ` Raghav Gururajan
  2019-06-26 23:22   ` Raghav Gururajan
  0 siblings, 1 reply; 14+ messages in thread
From: Raghav Gururajan @ 2019-06-26 23:15 UTC (permalink / raw)
  To: help-guix

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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
  2019-06-26 23:15 ` Raghav Gururajan
@ 2019-06-26 23:22   ` Raghav Gururajan
  2019-06-26 23:33     ` Raghav Gururajan
  0 siblings, 1 reply; 14+ messages in thread
From: Raghav Gururajan @ 2019-06-26 23:22 UTC (permalink / raw)
  To: help-guix

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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
  2019-06-26 23:22   ` Raghav Gururajan
@ 2019-06-26 23:33     ` Raghav Gururajan
  2019-06-30 18:06       ` Tim Gesthuizen
  0 siblings, 1 reply; 14+ messages in thread
From: Raghav Gururajan @ 2019-06-26 23:33 UTC (permalink / raw)
  To: help-guix, tim.gesthuizen

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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
  2019-06-26 23:33     ` Raghav Gururajan
@ 2019-06-30 18:06       ` Tim Gesthuizen
  2019-06-30 18:19         ` Raghav Gururajan
  0 siblings, 1 reply; 14+ messages in thread
From: Tim Gesthuizen @ 2019-06-30 18:06 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix

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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
  2019-06-30 18:06       ` Tim Gesthuizen
@ 2019-06-30 18:19         ` Raghav Gururajan
  2019-06-30 18:49           ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 14+ messages in thread
From: Raghav Gururajan @ 2019-06-30 18:19 UTC (permalink / raw)
  To: Tim Gesthuizen; +Cc: help-guix

> 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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
  2019-06-30 18:19         ` Raghav Gururajan
@ 2019-06-30 18:49           ` Tobias Geerinckx-Rice
  2019-06-30 22:37             ` Raghav Gururajan
  0 siblings, 1 reply; 14+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-06-30 18:49 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix, Tim Gesthuizen

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]

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 </dev/ttySn’ if you're bored and don't want to have 
to run ‘reset’ afterwards.

Then use your pen and wait for output.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
  2019-06-30 18:49           ` Tobias Geerinckx-Rice
@ 2019-06-30 22:37             ` Raghav Gururajan
  2019-07-01 13:50               ` Tobias Geerinckx-Rice
       [not found]               ` <875zol64ru.fsf@yahoo.de>
  0 siblings, 2 replies; 14+ messages in thread
From: Raghav Gururajan @ 2019-06-30 22:37 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: help-guix, Tim Gesthuizen


> Just ‘cat /dev/ttySn’ will work, or something silly like ‘LANG=C 
> sed s/./blah/g </dev/ttySn’ if you're bored and don't want to have 
> 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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
  2019-06-30 22:37             ` Raghav Gururajan
@ 2019-07-01 13:50               ` Tobias Geerinckx-Rice
  2019-07-01 18:13                 ` Raghav Gururajan
       [not found]               ` <875zol64ru.fsf@yahoo.de>
  1 sibling, 1 reply; 14+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-07-01 13:50 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 741 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
  2019-07-01 13:50               ` Tobias Geerinckx-Rice
@ 2019-07-01 18:13                 ` Raghav Gururajan
  0 siblings, 0 replies; 14+ messages in thread
From: Raghav Gururajan @ 2019-07-01 18:13 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, Tim Gesthuizen; +Cc: help-guix


> 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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
       [not found]               ` <875zol64ru.fsf@yahoo.de>
@ 2019-07-01 18:17                 ` Raghav Gururajan
  2019-07-01 19:10                   ` Raghav Gururajan
  0 siblings, 1 reply; 14+ messages in thread
From: Raghav Gururajan @ 2019-07-01 18:17 UTC (permalink / raw)
  To: Tim Gesthuizen; +Cc: help-guix


> 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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
  2019-07-01 18:17                 ` Raghav Gururajan
@ 2019-07-01 19:10                   ` Raghav Gururajan
  2019-07-03 14:50                     ` Tim Gesthuizen
  0 siblings, 1 reply; 14+ messages in thread
From: Raghav Gururajan @ 2019-07-01 19:10 UTC (permalink / raw)
  To: Tim Gesthuizen; +Cc: help-guix

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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
  2019-07-01 19:10                   ` Raghav Gururajan
@ 2019-07-03 14:50                     ` Tim Gesthuizen
  2019-07-03 20:26                       ` Raghav Gururajan
  0 siblings, 1 reply; 14+ messages in thread
From: Tim Gesthuizen @ 2019-07-03 14:50 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: help-guix


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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: PLEASE! Input Attach Service
  2019-07-03 14:50                     ` Tim Gesthuizen
@ 2019-07-03 20:26                       ` Raghav Gururajan
  0 siblings, 0 replies; 14+ messages in thread
From: Raghav Gururajan @ 2019-07-03 20:26 UTC (permalink / raw)
  To: Tim Gesthuizen; +Cc: help-guix


> 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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-07-03 20:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-11 23:21 PLEASE! Input Attach Service Raghav Gururajan
2019-06-26 23:15 ` Raghav Gururajan
2019-06-26 23:22   ` Raghav Gururajan
2019-06-26 23:33     ` Raghav Gururajan
2019-06-30 18:06       ` Tim Gesthuizen
2019-06-30 18:19         ` Raghav Gururajan
2019-06-30 18:49           ` Tobias Geerinckx-Rice
2019-06-30 22:37             ` Raghav Gururajan
2019-07-01 13:50               ` Tobias Geerinckx-Rice
2019-07-01 18:13                 ` Raghav Gururajan
     [not found]               ` <875zol64ru.fsf@yahoo.de>
2019-07-01 18:17                 ` Raghav Gururajan
2019-07-01 19:10                   ` Raghav Gururajan
2019-07-03 14:50                     ` Tim Gesthuizen
2019-07-03 20:26                       ` Raghav Gururajan

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.