[LINUX] HOW-TO configure Soundgraph iMON VFD/IR Receiver (used by many HTPC chassis)
mvdaat Wrote:2. Is there a way to show the time or date when I close the system it's now saying "thanks for using lcdproc and linux" (or something like that)

I know this was a while ago now but it has been driving me crazy since i got my silverstone case with imon LCD.

I managed to get it all up and running (after some considerable amount of searching, reading and trying different things).

Eventually the only thing left to sort out is the fact that when the machine powers down I am left with a blank lcd display with backlight turned on.

Ideally I would've liked to completely blank the screen when the pc is powered down but I have so far not managed to achieve that. However my next best hope was to at least have the ugly clock displayed rather than a blank screen.

I tried putting settings OnExit and BackLight into the LCDd.conf in the [imonlcd] section but it doesn't seem to work for my iMon display.

Instead i did this

Create a file containing the following and save it somewhere (i saved mine to /usr/bin/lcd.perl)

Code:
my ($secs,$mins,$hours,$days,$months,$years,$dow)=(localtime)[0,1,2,3,4,5,6];
my $lcd = '80';
my $lcd = $lcd.sprintf('%.2x%.2x%.2x',$years,$months,$days);
my $lcd = $lcd.sprintf('%.2x%.2x%.2x',$hours,$mins,$secs);
my $lcd = $lcd.'88';
print pack "H*", $lcd;

now modify /etc/init.d/LCDd and add the following after the sleep 1 command in the stop section of the file

Code:
perl /usr/bin/lcd.perl >/dev/lcd0

eg something like this

Code:
#### BEGIN INIT INFO
# Provides:          LCDd
# Required-Start:    $syslog $local_fs $network $remote_fs
# Required-Stop:     $syslog $local_fs $network $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      S 0 1 6
# Short-Description: LCDproc Server Daemon
# Description:       Debian init script for LCDd, the display
#                    server daemon in the LCDproc suite
### END INIT INFO

# local variables
prefix=/usr/local
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
sbindir=${exec_prefix}/sbin
etc=${prefix}/etc

NAME=LCDd
DAEMON=${sbindir}/${NAME}
DESC="LCDd display server daemon"
OPTIONS="-i 0"

# installation check
test -x ${DAEMON} || exit 0

case "$1" in
    start)
        printf "Starting ${DESC}: "
        start-stop-daemon --start --quiet --exec ${DAEMON} -- ${OPTIONS}
        sleep 1
        printf "\n"
        ;;
    stop)
        printf "Stopping ${DESC}: "
        start-stop-daemon --stop --oknodo --quiet --exec ${DAEMON}
        sleep 1
        perl /usr/bin/lcd.perl >/dev/lcd0
        printf "\n"
        ;;
    restart|force-reload)
        $0 stop
        sleep 1
        $0 start
        ;;
    *)
        printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2
        exit 1
        ;;
esac

exit 0

Now you should get the ugly clock on shutdown.

Also if you want to adjust the brightness of the clock you can put this line as well

Code:
perl -e 'print pack "H*", "0600000000000003" >/dev/lcd0

change the first two hex digits (06 above) for different brightness settings.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average


Messages In This Thread
[No subject] - by cofin - 2008-11-13, 01:58
[No subject] - by mkortstiege - 2008-11-13, 09:56
Thanks! - by mdalacu - 2008-11-13, 10:17
[No subject] - by cofin - 2008-11-14, 19:34
[No subject] - by mvdaat - 2008-11-14, 23:49
[No subject] - by cofin - 2008-11-15, 09:44
[No subject] - by adriany - 2008-12-10, 10:53
[No subject] - by thecheekymonkey - 2008-12-19, 22:05
[No subject] - by tiburcillo - 2008-12-20, 16:02
[No subject] - by mvdaat - 2008-12-24, 23:01
[No subject] - by ashmaston - 2008-12-25, 19:25
[No subject] - by Doxic - 2008-12-29, 15:46
[No subject] - by spid - 2008-12-29, 21:32
[No subject] - by siliconix - 2008-12-29, 22:02
[No subject] - by spid - 2008-12-31, 02:02
[No subject] - by Coguar - 2009-01-10, 20:45
[No subject] - by cosmograf - 2009-01-11, 01:40
Exact same error - by tiburcillo - 2009-01-12, 17:31
[No subject] - by tiburcillo - 2009-01-12, 21:36
[No subject] - by dirtylion - 2009-01-12, 22:14
[No subject] - by tiburcillo - 2009-01-12, 22:51
[No subject] - by dirtylion - 2009-01-12, 23:05
[No subject] - by tiburcillo - 2009-01-13, 19:04
[No subject] - by roboz - 2009-01-14, 01:07
[No subject] - by dirtylion - 2009-01-14, 16:45
[No subject] - by dios - 2009-01-15, 09:13
[No subject] - by dios - 2009-01-15, 09:44
[No subject] - by dirtylion - 2009-01-16, 15:11
[No subject] - by dirtylion - 2009-01-17, 03:06
[No subject] - by NismoC32 - 2009-01-17, 07:58
[No subject] - by mvdaat - 2009-01-17, 22:29
[No subject] - by NismoC32 - 2009-01-18, 01:35
[No subject] - by realn - 2009-01-18, 07:05
[No subject] - by NismoC32 - 2009-01-18, 13:07
[No subject] - by realn - 2009-01-18, 14:31
[No subject] - by wroopy - 2009-01-19, 21:45
[No subject] - by NismoC32 - 2009-01-23, 01:13
[No subject] - by todderod - 2009-01-24, 03:36
[No subject] - by Temar - 2009-01-24, 19:21
[No subject] - by Temar - 2009-01-24, 19:27
[No subject] - by NismoC32 - 2009-01-24, 19:49
[No subject] - by NismoC32 - 2009-01-24, 20:19
[No subject] - by Temar - 2009-01-25, 01:38
[No subject] - by NismoC32 - 2009-01-25, 01:45
[No subject] - by Temar - 2009-01-25, 02:20
[No subject] - by NismoC32 - 2009-01-25, 02:46
[No subject] - by Temar - 2009-01-25, 03:02
[No subject] - by NismoC32 - 2009-01-25, 03:08
[No subject] - by Temar - 2009-01-25, 03:16
[No subject] - by NismoC32 - 2009-01-25, 03:17
[No subject] - by Temar - 2009-01-25, 03:26
[No subject] - by Temar - 2009-01-25, 03:30
[No subject] - by NismoC32 - 2009-01-25, 03:43
[No subject] - by Temar - 2009-01-25, 03:50
[No subject] - by NismoC32 - 2009-01-25, 05:01
[No subject] - by NismoC32 - 2009-01-25, 14:45
[No subject] - by Temar - 2009-01-25, 15:13
[No subject] - by Temar - 2009-01-25, 15:13
[No subject] - by stalvatero - 2009-01-26, 11:45
[No subject] - by NismoC32 - 2009-01-26, 11:55
[No subject] - by Temar - 2009-01-26, 13:57
Rm100 - by davidw - 2009-01-27, 11:02
[No subject] - by Temar - 2009-01-27, 18:47
[No subject] - by davidw - 2009-01-28, 22:00
[No subject] - by snappz - 2009-01-28, 23:06
[No subject] - by Temar - 2009-01-29, 02:49
[No subject] - by davidw - 2009-01-29, 20:47
[No subject] - by berland - 2009-02-02, 21:46
[No subject] - by spozen - 2009-02-02, 22:05
[No subject] - by Snixten - 2009-02-02, 23:30
[No subject] - by spozen - 2009-02-03, 00:06
[No subject] - by Snixten - 2009-02-03, 15:41
[No subject] - by spozen - 2009-02-03, 18:51
garbage output on LCD - by ali_Sheepuk - 2009-02-11, 22:27
[No subject] - by odinb - 2009-02-13, 18:03
[No subject] - by scurra - 2009-02-18, 00:04
[No subject] - by Azzir - 2009-02-22, 08:02
[No subject] - by Gurney - 2009-02-22, 15:43
[No subject] - by Azzir - 2009-02-23, 02:18
[No subject] - by droopy4u - 2009-03-02, 23:03
Inter-tech 2008v - by rickx - 2009-03-03, 19:42
XBMC Live - by Fitho - 2009-03-03, 21:54
[No subject] - by rickx - 2009-03-03, 22:33
[No subject] - by droopy4u - 2009-03-03, 22:48
[No subject] - by droopy4u - 2009-03-03, 23:11
[No subject] - by rickx - 2009-03-03, 23:13
[No subject] - by rickx - 2009-03-03, 23:16
[No subject] - by droopy4u - 2009-03-04, 00:14
[No subject] - by rickx - 2009-03-04, 07:33
[No subject] - by droopy4u - 2009-03-05, 00:05
[No subject] - by rickx - 2009-03-05, 09:03
[No subject] - by droopy4u - 2009-03-05, 10:57
[No subject] - by rickx - 2009-03-05, 20:51
[No subject] - by droopy4u - 2009-03-05, 21:46
[No subject] - by Gurney - 2009-03-06, 23:33
[No subject] - by Gurney - 2009-03-06, 23:44
[No subject] - by rodercot - 2009-03-07, 02:27
[No subject] - by karifsmith - 2009-03-07, 07:11
[No subject] - by rodercot - 2009-03-07, 13:26
[No subject] - by karifsmith - 2009-03-07, 23:21
[No subject] - by rodercot - 2009-03-08, 00:27
[No subject] - by karifsmith - 2009-03-08, 00:50
[No subject] - by lens - 2009-03-16, 22:11
[No subject] - by rickx - 2009-03-16, 23:59
[No subject] - by lens - 2009-03-17, 13:06
[No subject] - by lens - 2009-03-18, 02:06
[No subject] - by rickx - 2009-03-18, 09:28
[No subject] - by lens - 2009-03-18, 21:56
[No subject] - by Fitho - 2009-03-21, 04:34
[No subject] - by Fitho - 2009-03-21, 05:26
[No subject] - by rickx - 2009-03-21, 06:21
[No subject] - by Fitho - 2009-03-21, 15:25
[No subject] - by rickx - 2009-03-21, 16:39
[No subject] - by Fitho - 2009-03-22, 14:16
XBMC Live - by Fitho - 2009-03-24, 21:34
[No subject] - by Fitho - 2009-03-25, 01:52
[No subject] - by rockerduck - 2009-03-25, 14:06
[No subject] - by cporter23 - 2009-03-27, 16:11
[No subject] - by cofin - 2009-03-29, 02:33
[No subject] - by rickx - 2009-04-09, 15:11
[No subject] - by cofin - 2009-04-18, 01:15
[No subject] - by michal - 2009-04-20, 07:20
[No subject] - by EMK0 - 2009-04-20, 13:20
[No subject] - by rickx - 2009-04-20, 14:09
[No subject] - by cofin - 2009-04-25, 01:51
[No subject] - by cofin - 2009-04-25, 01:58
[No subject] - by EMK0 - 2009-04-26, 10:13
[No subject] - by Gurney - 2009-04-27, 07:32
[No subject] - by Gurney - 2009-04-30, 06:39
[No subject] - by Gurney - 2009-05-20, 00:47
[No subject] - by odinb - 2009-05-20, 18:53
[No subject] - by mclassic - 2009-05-22, 14:25
[No subject] - by Phantasm4489 - 2009-07-03, 01:37
[No subject] - by mario_dnb - 2009-07-03, 15:59
[No subject] - by mario_dnb - 2009-07-03, 16:02
[No subject] - by klikkamongo - 2009-07-09, 19:39
[No subject] - by sp00f3r - 2009-07-10, 15:40
[No subject] - by nugentgl - 2009-07-26, 16:36
[No subject] - by cofin - 2009-07-28, 20:31
[No subject] - by nugentgl - 2009-07-28, 20:50
[No subject] - by nugentgl - 2009-07-28, 20:58
[No subject] - by cofin - 2009-07-28, 21:59
[No subject] - by nugentgl - 2009-07-28, 22:24
[No subject] - by nugentgl - 2009-07-28, 22:28
[No subject] - by cofin - 2009-07-28, 22:29
[No subject] - by nugentgl - 2009-07-29, 18:15
Works for me now! - by sp00f3r - 2009-07-30, 10:27
[No subject] - by rgh184 - 2009-08-01, 07:32
[No subject] - by noumenon - 2009-08-03, 23:08
[No subject] - by sp00f3r - 2009-08-04, 07:52
[No subject] - by noumenon - 2009-08-04, 14:54
[No subject] - by rgh184 - 2009-08-04, 19:03
[No subject] - by Phantasm4489 - 2009-08-04, 21:43
[No subject] - by burritoboy9984 - 2009-08-05, 07:26
[No subject] - by sp00f3r - 2009-08-05, 13:13
[No subject] - by noumenon - 2009-08-05, 15:10
[No subject] - by rgh184 - 2009-08-05, 16:14
[No subject] - by burritoboy9984 - 2009-08-05, 18:16
[No subject] - by noumenon - 2009-08-05, 19:16
[No subject] - by rgh184 - 2009-08-05, 19:20
[No subject] - by burritoboy9984 - 2009-08-05, 22:18
[No subject] - by noumenon - 2009-08-05, 22:24
[No subject] - by nugentgl - 2009-08-05, 22:32
[No subject] - by burritoboy9984 - 2009-08-06, 00:26
[No subject] - by noumenon - 2009-08-06, 00:53
[No subject] - by burritoboy9984 - 2009-08-06, 02:09
[No subject] - by burritoboy9984 - 2009-08-06, 02:26
[No subject] - by noumenon - 2009-08-06, 02:37
[No subject] - by burritoboy9984 - 2009-08-06, 04:58
[No subject] - by noumenon - 2009-08-06, 14:08
[No subject] - by Tarantulas - 2009-08-10, 07:27
[No subject] - by Tarantulas - 2009-08-10, 20:54
[No subject] - by noumenon - 2009-08-10, 21:01
[No subject] - by Tarantulas - 2009-08-10, 21:03
[No subject] - by noumenon - 2009-08-10, 21:05
[No subject] - by Tarantulas - 2009-08-10, 21:29
[No subject] - by noumenon - 2009-08-10, 21:31
[No subject] - by Tarantulas - 2009-08-10, 21:36
[No subject] - by Tarantulas - 2009-08-11, 06:30
[No subject] - by rgh184 - 2009-08-11, 15:29
[No subject] - by Tarantulas - 2009-08-11, 16:21
[No subject] - by rgh184 - 2009-08-11, 16:24
[No subject] - by Tarantulas - 2009-08-11, 18:14
[No subject] - by rgh184 - 2009-08-11, 20:50
[No subject] - by Tarantulas - 2009-08-11, 22:19
[No subject] - by Tarantulas - 2009-08-13, 06:29
[No subject] - by rgh184 - 2009-08-13, 06:33
[No subject] - by Tarantulas - 2009-08-13, 06:38
[No subject] - by rgh184 - 2009-08-13, 06:41
[No subject] - by Tarantulas - 2009-08-13, 06:43
[No subject] - by rgh184 - 2009-08-13, 06:44
[No subject] - by Tarantulas - 2009-08-13, 06:46
[No subject] - by rgh184 - 2009-08-13, 06:49
[No subject] - by Tarantulas - 2009-08-13, 06:52
[No subject] - by rgh184 - 2009-08-13, 06:56
[No subject] - by Tarantulas - 2009-08-13, 07:05
[No subject] - by Tarantulas - 2009-08-15, 09:47
[No subject] - by Tarantulas - 2009-08-15, 10:26
[No subject] - by noumenon - 2009-08-15, 14:12
[No subject] - by Tarantulas - 2009-08-15, 22:00
[No subject] - by Tarantulas - 2009-08-17, 04:53
[No subject] - by noumenon - 2009-08-17, 12:24
[No subject] - by Tarantulas - 2009-08-17, 17:13
[No subject] - by noumenon - 2009-08-17, 18:04
[No subject] - by burritoboy9984 - 2009-08-18, 02:48
[No subject] - by Tarantulas - 2009-08-18, 03:27
[No subject] - by Tarantulas - 2009-08-18, 05:32
[No subject] - by noumenon - 2009-08-18, 20:01
[No subject] - by Tarantulas - 2009-08-19, 05:22
[No subject] - by Tarantulas - 2009-08-19, 05:25
[No subject] - by Tarantulas - 2009-08-19, 05:31
[No subject] - by Tarantulas - 2009-08-20, 04:38
[No subject] - by Tarantulas - 2009-08-20, 06:39
[No subject] - by noumenon - 2009-08-20, 14:56
[No subject] - by Tarantulas - 2009-08-20, 17:07
[No subject] - by noumenon - 2009-08-20, 20:35
[No subject] - by Tarantulas - 2009-08-21, 10:18
[No subject] - by noumenon - 2009-08-21, 15:22
[No subject] - by Tarantulas - 2009-08-21, 15:34
[No subject] - by Tarantulas - 2009-08-22, 09:24
[No subject] - by noumenon - 2009-08-22, 14:12
[No subject] - by Tarantulas - 2009-08-22, 18:50
[No subject] - by noumenon - 2009-08-22, 19:50
[No subject] - by Tarantulas - 2009-08-23, 00:53
[No subject] - by noumenon - 2009-08-23, 03:48
[No subject] - by Tarantulas - 2009-08-25, 18:02
[No subject] - by noumenon - 2009-08-25, 18:32
[No subject] - by Tarantulas - 2009-08-26, 04:00
[No subject] - by Gurney - 2009-10-23, 00:03
[No subject] - by Dimon8211 - 2009-10-28, 07:41
[No subject] - by Ritzie - 2009-10-29, 22:43
[No subject] - by poulpe - 2009-11-01, 02:20
[No subject] - by Dimon8211 - 2009-11-05, 07:40
[No subject] - by iainmacleod - 2009-11-09, 01:18
[No subject] - by cofin - 2009-11-09, 19:25
[No subject] - by iainmacleod - 2009-11-09, 19:33
[No subject] - by cofin - 2009-11-09, 19:44
[No subject] - by iainmacleod - 2009-11-09, 19:48
Imon and Karmic - by pucko - 2009-11-10, 20:40
RE: Imon and Karmic - by mmascosta - 2012-10-12, 17:04
[No subject] - by cofin - 2009-11-10, 21:23
[No subject] - by iainmacleod - 2009-11-10, 21:41
[No subject] - by iainmacleod - 2009-11-12, 15:56
[No subject] - by pucko - 2009-11-12, 22:45
[No subject] - by iainmacleod - 2009-11-12, 22:51
[No subject] - by iainmacleod - 2009-11-13, 18:40
[No subject] - by pucko - 2009-11-15, 15:11
same issue - by xscousr - 2009-11-16, 03:47
[No subject] - by MaximumFish - 2010-01-23, 16:27
[No subject] - by kuseman - 2010-01-23, 17:02
[No subject] - by MaximumFish - 2010-01-23, 17:11
[No subject] - by MaximumFish - 2010-01-23, 17:54
[No subject] - by MaximumFish - 2010-01-23, 22:21
[No subject] - by BigKid - 2010-02-07, 00:01
[No subject] - by wouterdt - 2010-04-20, 12:38
[No subject] - by hrizzy - 2010-05-08, 17:53
[No subject] - by hrizzy - 2010-05-10, 16:39
[No subject] - by wouterdt - 2010-07-28, 07:40
[No subject] - by sylvio2000 - 2010-07-29, 13:34
[No subject] - by Raphael Barros - 2010-08-04, 03:33
[No subject] - by wouterdt - 2010-08-04, 04:35
[No subject] - by Raphael Barros - 2010-08-20, 22:08
Problem with timing I think? - by Bacardi_AVT - 2010-11-19, 14:28
[No subject] - by turkosbon - 2010-12-24, 13:06
[No subject] - by garz - 2011-11-01, 00:33
[No subject] - by garz - 2011-11-04, 00:18
key problem - by turkosbon - 2015-02-12, 23:55
Help with Antec Fusion V2 - by Technicolour - 2013-05-22, 12:18


Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO configure Soundgraph iMON VFD/IR Receiver (used by many HTPC chassis)00
This forum uses Lukasz Tkacz MyBB addons.