I have saved a script in /opt/ltsp/i386/etc/rc.d named "unmute". I have added
the line
RCFILE_01 = unmute
in lts.conf.
There are no error messages upon rebooting the client, but the script does not
appear to have run. If, from the client shell, I run "/etc/rc.d/unmute" it
works perfectly (by which I mean that typing "amixer sget Front" shows the
desired volume and is unmuted). Script is executable for ugo.
I have tried including the full path in lts.conf, but the boot process then
complains that the RCFILE does not exist; which would suggest that without
the full path it is happy, even though it does not appear to be working.
The only thing that I can think of is that the boot process finishes by
displaying various SCSI messages confirming the detection of the card reader
slots (Compact Flash, XD, SD, MS etc) and I have to hit ENTER to return to
shell prompt.
e.g.
sd 0:0:0:0: Attached scsi removable disk sda
sd 0:0:0:1: Attached scsi removable disk sdb
sd 0:0:0:2: Attached scsi removable disk sdc
sd 0:0:0:3: Attached scsi removable disk sdd
Any thoughts? See below for the boring detail.
Many thanks,
Chris Roberts
-------
As the name suggests, the RC script is designed to un-mute sound devices.
I have an HP dc5750 PC for which I have managed to get the sound card working,
with LTS.conf:
SMODULE_01 = "snd-hda-intel model=hp"
Unfortunately the sound is muted. On the client I can enable sound by typing:
amixer set Front 75% unmute
And then all is well.
Sadly an obvious "FRONT_VOLUME = 100" line in LTS.conf did not improve
matters, so I needed to find some way of automating this task.
I came across this script written by Gideon Romm of Symbio Technologies (who I
believe is/was a member of this list):
<http://www.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/s/sy/symbiont/ltsp-setup-more>
This script looks ideal, as it would appear to implement FRONT_VOLUME and
un-mute automatically. I have made a few changes to the script, only so that
I understood its workings better:
#!/bin/bash
#
# Copyright Gideon Romm, Symbio Technologies
#
# Released under GPLv2
#
# This is a script to set up certain things
# that are not already setup in an SBA environment
#
# Specifically:
# 1. restore sound levels
#
# Set up local environment
if [ -f /etc/lts.conf ]; then
eval `getltscfg -a`
fi
# Set up sound
if [ -n "$VOLUME" ]; then
amixer sset Master,0 ${VOLUME}% unmute 2>/dev/null
amixer sset 'Master Digital',0 ${VOLUME}% unmute 2>/dev/null
amixer sset Headphone,0 ${HEADPHONE_VOLUME:-$VOLUME}% unmute 2>/dev/null
fi
if [ -n "$PCM_VOLUME" ]; then
amixer sset PCM,0 ${PCM_VOLUME}% unmute 2>/dev/null
fi
if [ -n "$MIC_VOLUME" ]; then
amixer sset Mic,0 ${MIC_VOLUME}% unmute cap 2>/dev/null
fi
if [ -n "$CD_VOLUME" ]; then
amixer sset CD,0 ${CD_VOLUME}% unmute 2>/dev/null
fi
if [ -n "$FRONT_VOLUME" ]; then
amixer sset Front,0 ${FRONT_VOLUME}% unmute 2>/dev/null
fi
# End of unmute script
For completeness my lts.conf for this client looks like this:
# HP dc5750
XSERVER = ati
LIKE = "DGM-L1931"
SMODULE_01 = "snd-hda-intel model=hp"
LIKE = Sound
VOLUME = 100
FRONT_VOLUME = 100
MIC_VOLUME = 0
CD_VOLUME = 100
RCFILE_01 = unmute
SCREEN_01 = shell
ALLOW_SHUTDOWN = Y
# End of lts.conf extract
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net