You are not logged in.

#1 2015-04-28 14:54:30

milkman
Member
Registered: 2015-04-21
Posts: 5

Shell script intermittently not running [AwesomeWM]

Hi all!

I'm trying to get my Logitech G13 running on login but intermittently having issues with it.  Most of the time, I'd say maybe 80%, it works however sometimes I believe the shell script to apply permissions does not properly execute.

I created shell script g13permission  inside /home/milk/startup/ then added /home/milk/startup/ to my ~/.bash_profile
the script is simply:

#! /bin/bash
#Set permissions for G13
sudo chmod a+rw /dev/uinput

I then ran

 chmod 755 g13permission

from inside the startup folder


I'm using AwesomeWM, so to handle it on boot I added the following to my rc.lua:

awful.util.spawn_with_shell("g13permission") 
awful.util.spawn_with_shell("g13d")
awful.util.spawn_with_shell("cat default.bind > /tmp/g13-0") 

So like I said, maybe 80% of the time when I log in it properly executes everything and my G13 shows the linux inside logo and all buttons work

but then the other 20% of the time my G13 LCD will change colors but not show the logo or respond to button presses, which is also what happens if I, rather than auto starting with awesome, run everything through terminal without first chmod'ing /dev/uinput


Any help would be appreciated

Last edited by milkman (2015-04-28 17:30:46)

Offline

#2 2015-04-28 17:17:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Shell script intermittently not running [AwesomeWM]

No idea what a G13 is, but this sounds like something a udev rule would handle...

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-04-28 17:32:16

milkman
Member
Registered: 2015-04-21
Posts: 5

Re: Shell script intermittently not running [AwesomeWM]

Thanks for the reply, I've updated my OP with proper code tags.

The g13 is a gaming keyboard https://wiki.archlinux.org/index.php/Logitech_G13

I'm attempting to use the 'g13' outlined section

I will look into udev rules, thanks again.

Offline

Board footer

Powered by FluxBB