Home of the Squeezebox™ & Transporter® network music players.
Page 80 of 135 FirstFirst ... 3070787980818290130 ... LastLast
Results 791 to 800 of 1349
  1. #791
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    3,706
    Quote Originally Posted by gegen View Post
    Is it possible to install LMS 8 on piCorePlayer v6.0.0-b7 ?
    Sorry, struggling to find instructions, found them now -

    https://www.picoreplayer.org/how_to_upgrade_lms.shtml

    Just replace 7.9.2 with 8.0.0 in step 5.
    Server - LMS 8.0.0 Pi4B 4GB/Flirc case/pCP 6.1.0 18K library, playlists & LMS cache on SSD (ntfs)
    Study - Pi3B+/pCP 5.0.0/pi screen/HiFiBerry DAC+/jivelite,
    Lounge - Pi2/pCP 5.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Squeezebox Boom
    Garage - Squeezebox Touch > Edifier R980T

    Spares - 1xTouch, 1xSB3, 1xRadio, 7xRPi

  2. #792
    Senior Member
    Join Date
    Apr 2019
    Location
    Wunstorf, Germany
    Posts
    325
    Quote Originally Posted by paul- View Post
    Some use a user space program, but There is fan control in the kernel..... not sure if they use this or not?
    This is the part to create the daemon for temperature checking (it is running as a service later:
    Code:
    echo 'def temp_check():' >> $powerbuttonscript
    echo '	fanconfig = ["65=100", "60=55", "55=10"]' >> $powerbuttonscript
    echo '	tmpconfig = load_config("'$daemonconfigfile'")' >> $powerbuttonscript
    echo '	if len(tmpconfig) > 0:' >> $powerbuttonscript
    echo '		fanconfig = tmpconfig' >> $powerbuttonscript
    echo '	address=0x1a' >> $powerbuttonscript
    echo '	prevblock=0' >> $powerbuttonscript
    echo '	while True:' >> $powerbuttonscript
    echo '		temp = os.popen("vcgencmd measure_temp").readline()' >> $powerbuttonscript
    echo '		temp = temp.replace("temp=","")' >> $powerbuttonscript
    echo '		val = float(temp.replace("'"'"'C",""))' >> $powerbuttonscript
    echo '		block = get_fanspeed(val, fanconfig)' >> $powerbuttonscript
    echo '		if block < prevblock:' >> $powerbuttonscript
    echo '			time.sleep(30)' >> $powerbuttonscript
    echo '		prevblock = block' >> $powerbuttonscript
    echo '		try:' >> $powerbuttonscript
    echo '			bus.write_byte(address,block)' >> $powerbuttonscript
    echo '		except IOError:' >> $powerbuttonscript
    echo '			temp=""' >> $powerbuttonscript
    echo '		time.sleep(30)' >> $powerbuttonscript
    They are reading the temperature with "vcgencmd measure_temp" and if it reaches the next step from the config they call this:
    Code:
    bus.write_byte(address,block)
    where address is 0x1a and block is the fanspeed from config.

    I don't know what this bus.write_byte is doing. Maybe it is enough to write this a single time to have the fan running always at the same speed?

  3. #793
    Junior Member
    Join Date
    Jan 2020
    Posts
    14
    Quote Originally Posted by carsten_h View Post
    Oh, great!
    I saw that the fan is controlled by the software to use different speeds at different temperatures. There is a software running in background for this.
    I think this will not be available in piCorePlayer installation.

    Is the fan running at full speed when no software is running or is it shut off completely?
    The fan is off until install the control script.

  4. #794
    Senior Member
    Join Date
    Apr 2019
    Location
    Wunstorf, Germany
    Posts
    325
    Quote Originally Posted by Aldoszx View Post
    The fan is off until install the control script.
    Ok, are you using it together with the piCorePlayer installation?

  5. #795
    Senior Member
    Join Date
    Oct 2010
    Posts
    118
    Quote Originally Posted by kidstypike View Post
    Sorry, struggling to find instructions, found them now -

    https://www.picoreplayer.org/how_to_upgrade_lms.shtml

    Just replace 7.9.2 with 8.0.0 in step 5.
    Thanks a lot, will give it a go!

  6. #796
    Senior Member
    Join Date
    Oct 2010
    Posts
    118
    Quote Originally Posted by kidstypike View Post
    Sorry, struggling to find instructions, found them now -

    https://www.picoreplayer.org/how_to_upgrade_lms.shtml

    Just replace 7.9.2 with 8.0.0 in step 5.
    That worked, thanks again

  7. #797
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,180
    Quote Originally Posted by carsten_h View Post
    This is the part to create the daemon for temperature checking (it is running as a service later:
    Code:
    echo 'def temp_check():' >> $powerbuttonscript
    echo '	fanconfig = ["65=100", "60=55", "55=10"]' >> $powerbuttonscript
    echo '	tmpconfig = load_config("'$daemonconfigfile'")' >> $powerbuttonscript
    echo '	if len(tmpconfig) > 0:' >> $powerbuttonscript
    echo '		fanconfig = tmpconfig' >> $powerbuttonscript
    echo '	address=0x1a' >> $powerbuttonscript
    echo '	prevblock=0' >> $powerbuttonscript
    echo '	while True:' >> $powerbuttonscript
    echo '		temp = os.popen("vcgencmd measure_temp").readline()' >> $powerbuttonscript
    echo '		temp = temp.replace("temp=","")' >> $powerbuttonscript
    echo '		val = float(temp.replace("'"'"'C",""))' >> $powerbuttonscript
    echo '		block = get_fanspeed(val, fanconfig)' >> $powerbuttonscript
    echo '		if block < prevblock:' >> $powerbuttonscript
    echo '			time.sleep(30)' >> $powerbuttonscript
    echo '		prevblock = block' >> $powerbuttonscript
    echo '		try:' >> $powerbuttonscript
    echo '			bus.write_byte(address,block)' >> $powerbuttonscript
    echo '		except IOError:' >> $powerbuttonscript
    echo '			temp=""' >> $powerbuttonscript
    echo '		time.sleep(30)' >> $powerbuttonscript
    They are reading the temperature with "vcgencmd measure_temp" and if it reaches the next step from the config they call this:
    Code:
    bus.write_byte(address,block)
    where address is 0x1a and block is the fanspeed from config.

    I don't know what this bus.write_byte is doing. Maybe it is enough to write this a single time to have the fan running always at the same speed?
    Looks like the you need python, smbus, and rpi-vc. As dependencies. On the surface, the fan looks like itĺs I2c controlled.... They have 3 fan speeds.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #798
    Junior Member
    Join Date
    Feb 2011
    Posts
    22
    Quote Originally Posted by kidstypike View Post
    Sorry, struggling to find instructions, found them now -

    https://www.picoreplayer.org/how_to_upgrade_lms.shtml

    Just replace 7.9.2 with 8.0.0 in step 5.
    How does this method differ from using the "Nightly Update" button on the pCP - LMS Main Page?

  9. #799
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    3,706
    Quote Originally Posted by coyrls View Post
    How does this method differ from using the "Nightly Update" button on the pCP - LMS Main Page?
    If you're running LMS 7.9.2 then the "Nightly Update" button will keep you on the 7.9.2 track.

    If you wish to start using LMS 8.0.0 you'll need to use the instructions in the link, and in step 5 change 7.9.2 to 8.0.0.
    Server - LMS 8.0.0 Pi4B 4GB/Flirc case/pCP 6.1.0 18K library, playlists & LMS cache on SSD (ntfs)
    Study - Pi3B+/pCP 5.0.0/pi screen/HiFiBerry DAC+/jivelite,
    Lounge - Pi2/pCP 5.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Squeezebox Boom
    Garage - Squeezebox Touch > Edifier R980T

    Spares - 1xTouch, 1xSB3, 1xRadio, 7xRPi

  10. #800
    Junior Member
    Join Date
    Jan 2020
    Posts
    14
    Quote Originally Posted by carsten_h View Post
    Ok, are you using it together with the piCorePlayer installation?
    At this moment, no.
    I am using DietPi.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •