View previous topic :: View next topic |
Author |
Message |
ReDirEct__ Guru
Joined: 16 Mar 2006 Posts: 300 Location: Nola (NA) - Italy
|
Posted: Sat Jan 06, 2007 4:13 pm Post subject: g15composer... non ho capito come usarlo... |
|
|
Salve a tutti... mi è stata regalata la logitech g15 questo natale e sono stato un sacco di tempo a cercare di far funzionare il maledetto display lcd che al momento mi mostra solo l'orario.... qualcuno è riuscito a far funzionare g15composer decentemete?
Io sono riuscito a visualizzare qualcosa solo con lcdproc, ma volevo capire come mandare gli script al display tramite g15composer... qualcuno che mi da una mano? In rete nn si trova molto.... |
|
Back to top |
|
|
drizztbsd Retired Dev
Joined: 21 Nov 2004 Posts: 278 Location: Cesano Maderno
|
Posted: Sat Jan 06, 2007 10:40 pm Post subject: |
|
|
Tratto da: http://gentoo-wiki.com/HARDWARE_Logitech_G15#g15composer
Quote: | g15compser allows for simple usage of the lcd device through a pipe found at /var/run/g15composer. Text sent through a pipe to this file will be displayed on the lcd. Each new pipe sending data to /var/run/g15composer will create a new screen that can be cycled using the MR key. |
_________________ Gentoo/Alt lead
Gentoo/*BSD and Gentoo/FreeBSD deputy lead
Paludis contributor |
|
Back to top |
|
|
ReDirEct__ Guru
Joined: 16 Mar 2006 Posts: 300 Location: Nola (NA) - Italy
|
Posted: Mon Jan 08, 2007 8:37 am Post subject: |
|
|
Drizzt Do` Urden wrote: | Tratto da: http://gentoo-wiki.com/HARDWARE_Logitech_G15#g15composer
Quote: | g15compser allows for simple usage of the lcd device through a pipe found at /var/run/g15composer. Text sent through a pipe to this file will be displayed on the lcd. Each new pipe sending data to /var/run/g15composer will create a new screen that can be cycled using the MR key. |
|
Ok fino a qui ci ero arrivato... ma non riesco a visualizzare nessun tipo di informazione sul display, cioè nn ho ancora capito come si fa... |
|
Back to top |
|
|
X-Drum Advocate
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Mon Jan 08, 2007 2:33 pm Post subject: |
|
|
ReDirEct__ wrote: | Ok fino a qui ci ero arrivato... ma non riesco a visualizzare nessun tipo di informazione sul display, cioè nn ho ancora capito come si fa... |
prova ad emergerlo con le USE "amarok examples" e guarda gli scripts per capire il suo funzionamento,
g15daemon e lcdproc funzionano? _________________ "...There are two sort of lies, lies and benchmarks..." |
|
Back to top |
|
|
ReDirEct__ Guru
Joined: 16 Mar 2006 Posts: 300 Location: Nola (NA) - Italy
|
Posted: Mon Jan 08, 2007 7:16 pm Post subject: |
|
|
X-Drum wrote: | ReDirEct__ wrote: | Ok fino a qui ci ero arrivato... ma non riesco a visualizzare nessun tipo di informazione sul display, cioè nn ho ancora capito come si fa... |
prova ad emergerlo con le USE "amarok examples" e guarda gli scripts per capire il suo funzionamento,
g15daemon e lcdproc funzionano? |
si funzionano... infatti nn capisco come mai nn riesco a passare io i comandi attraverso la FIFO.... ho capito bene o male che dovrei passarglieli accodandoli al file che mi avete detto... ma quando provo ad accodarli nn cambia niente sul display... ad esempio:
io ho questo script:
Code: | #!/bin/bash
#
# This script is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this script; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#Change this pipe to reflect yours
pipe="/var/tmp/g15fifo"
while /bin/true;
do
line1="`date | sed -e "s/^/TS \\\"/g" | sed -e "s/$/\\\"/g"`"
line2="`uptime | sed -e "s/\s\s/ /g" | sed -e "s/\s\s/ /g" | \
sed -e "s/, load average: .*//g" | cut -d' ' -f 3-6 | sed -e "s/^/\\\"/g" | \
sed -e "s/$/\\\"/g"`"
line3="`uptime | sed -e "s/\s\s/ /g" | sed -e "s/\s\s/ /g" | \
sed -e "s/.*, load average:/load average:/g" | sed -e "s/^/\\\"/g" | sed -e "s/$/\\\"/g"`"
line4="\"\""
line5="`free | grep "Mem:" | cut -b1-40 | sed -e "s/^/\\\"/g" | sed -e "s/$/\\\"/g"`"
line6="`free | grep "Swap:" | cut -b1-40 | sed -e "s/^/\\\"/g" | sed -e "s/$/\\\"/g"`"
line="$line1 $line2 $line3 $line4 $line5 $line6"
echo $line > $pipe
sleep 10
done; |
Trovato in rete.... ho entrambi i servizi (g15daemon e g15composer) attivi... per passare lo scirpt, che ho chiamato g15stat, al file FIFO, faccio così:
Code: | ~/g15stat > /var/run/g15composer #che sarebbe il file fifo |
Solo che nn accade niente sul display... sbaglio io?? |
|
Back to top |
|
|
GiRa l33t
Joined: 07 Apr 2005 Posts: 717
|
Posted: Mon Jan 08, 2007 7:40 pm Post subject: |
|
|
Code: | echo "trallalarella evviva la scrittella" > /var/run/g15composer | funziona? (Nel dubbio fa prima una copia del file). |
|
Back to top |
|
|
ReDirEct__ Guru
Joined: 16 Mar 2006 Posts: 300 Location: Nola (NA) - Italy
|
Posted: Tue Jan 09, 2007 4:25 pm Post subject: |
|
|
GiRa wrote: | Code: | echo "trallalarella evviva la scrittella" > /var/run/g15composer | funziona? (Nel dubbio fa prima una copia del file). |
Nada... nn funziona... ho provato anche a disattivare prima lcdproc... ma nn funge |
|
Back to top |
|
|
|