lcdproc should be installed by default and configured if a VFD display is selected at remote selections

Bug #137451 reported by ironstorm
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mythbuntu
Expired
Wishlist
Unassigned

Bug Description

I have an iMON remote + VFD.

Ideally, LCDproc would be automatically configured through scripting it something like this:

export VFD_DRIVER=imon
sudo sh -c "sed -e \"s/^Driver=curses$/Driver=${VFD_DRIVER}/\" /etc/LCDd.conf > /etc/LCDd.conf.tmp"
sudo sh -c "mv /etc/LCDd.conf.tmp /etc/LCDd.conf"
sudo /etc/init.d/LCDd restart

description: updated
Revision history for this message
ironstorm (ironstorm-gmail) wrote :

While you are at it you can brand the Goodbye msg as follows, so that when LCDd proc terminates the VFD continues to display:

     hostname
(Mythbuntu <ver>)

Here's the code to modify LCDd.conf (must be root, assumes 16x2 VFD):
IFS='
'
export lcd_host_goodbye=$(hostname | awk '{l=length();s=int((16-l)/2); printf "%"(s+l)"s\n",$0}')
export lcd_tag_goodbye="(Mythbuntu $(cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -d= -f2))"
sed -e "s/#GoodBye=\"Thanks for using\"/GoodBye=\"$lcd_host_goodbye\"/" -e "s/#GoodBye=\" LCDproc\!\"/GoodBye=\"$lcd_tag_goodbye\"/" /etc/LCDd.conf > /etc/LCDd.conf.tmp
mv /etc/LCDd.conf.tmp /etc/LCDd.conf

/etc/init.d/LCDd restart

Revision history for this message
ironstorm (ironstorm-gmail) wrote :
Revision history for this message
Mario Limonciello (superm1) wrote :

I really like the idea of using this. I'm hoping to be getting a VFD in the near future, so I'll see how feasible this is to add.

laga (laga)
Changed in mythbuntu:
importance: Undecided → Wishlist
status: New → Triaged
Changed in mythbuntu:
milestone: none → 8.04-alpha1
Revision history for this message
Kjetil Kjernsmo (kjetil) wrote :

I was about to suggest this too! But how would the install script know if the box has one of these VFDs?

I was thinking, my lsusb shows:
  idVendor 0x15c2 SoundGraph Inc.
  idProduct 0xffdc iMON PAD Remote Controller

Perhaps those ids could be used for the purpose?

Just a suggestion, I have no experience with autodetecting stuff like this...

Cheers,

Kjetil

Revision history for this message
ironstorm (ironstorm-gmail) wrote :

Kjetil,

There is a drop down for the type of remote during the install, can't remember if there is one for the VFD also... Easy enough to ask the user about it, if there's no easy way to detect it. Most likely anyone installing mythbuntu with a case that has one will know to look in there manual or on their box to find out what type.

-G

Revision history for this message
Thomas Mashos (tgm4883) wrote :

We really do appreciate you opening this ticket to help improve Mythbuntu, but it needs to be closed for a number of reasons. The biggest one is that upstream has moved on to a new version and believes this to be fixed. Could you please verify if this issue still exists in the latest version?

Please do not let the closing of this ticket dissuade you from opening a new ticket if this (or any other) problem occurs with the newer versions.

Changed in mythbuntu:
status: Triaged → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.