Package: triggerhappy
Version: 0.4.0-2
Severity: important

Hi,

I am wondering why thd is no longer working in Sid. I checked lsof
output, apparently no event files are opened by it. How comes?

I tried the instructions from the README, doesn't work:

th-cmd /var/run/triggerhappy.socket add /dev/input/event0
A single command must be specified!
Triggerhappy command 0.4.0
Use:
  th-cmd --socket <socket> [--grab] [--passfd] --add <devices...>
...

Tried to interpret the help output, still not working:

th-cmd --socket /var/run/triggerhappy.socket --add 
/dev/input/by-id/usb-Microsoft_Natural®_Ergonomic_Keyboard_4000-event-kbd 
Error sending command
th-cmd --socket /var/run/triggerhappy.socket --add 
/dev/input/by-id/usb-Microsoft_Natural®_Ergonomic_Keyboard_4000-if01-event-kbd 
Error sending command

Trying to trace...

socket(AF_LOCAL, SOCK_DGRAM, 0)         = 3
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/triggerhappy.socket"}, 30) = 
-1 ENOENT (No such file or directory)
sendmsg(3, {msg_name(0)=NULL, 
msg_iov(1)=[{"\1\0\0\0/dev/input/by-id/usb-Microso"..., 524}], 
msg_controllen=0, msg_flags=0}, 0) = -1 ENOTCONN (Transport endpoint is not 
connected)
write(2, "Error sending command\n", 22Error sending command

Ok, means the error message is BS, it should tell the real reason (from
perror()) instead.

Anyhow, I see the socket in lsof output:

thd        7195                   root    3u     unix 0xffff88032707c000      
0t0      10223 /run/thd.socket type=STREAM

But the file doesn't exist. Who deleted it? I have no idea.
Maybe some code bug deleting it or making it creation unreliable?

IMHO you could also use tmpfiles mechanism from systemd to manage them, man 
tmpfiles.d .
debian/*.tmpfile is actually considered by debhelper.

Regards,
Eduard.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages triggerhappy depends on:
ii  init-system-helpers  1.42
ii  libc6                2.23-4
ii  libsystemd0          231-2

triggerhappy recommends no packages.

triggerhappy suggests no packages.

-- Configuration Files:
/etc/default/triggerhappy changed:
DAEMON_OPTS="--user root"


-- no debconf information

-- 
* Scorpi ist aus dem Amiga-Bereich eher Boards gewöhnt, die man nach dem
        Rausschrauben nur unter Umgehung physicher Gesetze wieder eingebaut
        bekommt.

Reply via email to