Difference between pages "Package:ACPI Daemon" and "Package:Pianobar"

(Difference between pages)
m
 
 
Line 1: Line 1:
 
{{Ebuild
 
{{Ebuild
|Summary=Daemon for Advanced Configuration and Power Interface
+
|Summary=Pianobar is a console client for the personalized web radio Pandora.
|CatPkg=sys-power/acpid
+
|CatPkg=media-sound/pianobar
 
|Maintainer=
 
|Maintainer=
|Homepage=http://sourceforge.net/projects/acpid2/
+
|Homepage=https://github.com/PromyLOPh/pianobar
|Repository=Gentoo Portage Tree
+
 
}}
 
}}
=== What is ACPI? ===
 
<blockquote>
 
"In computing, the Advanced Configuration and Power Interface (ACPI) specification provides an open standard for device configuration and power management by the operating system." ([http://en.wikipedia.org/wiki/Advanced_Configuration_and_Power_Interface Wikipedia])
 
</blockquote>
 
  
=== What is acpid? ===
+
Pianobar is a console client for the personalized web radio Pandora.
<blockquote>
+
It features the following abilities:
"ACPID is a completely flexible, totally extensible daemon for delivering ACPI events. It listens on a file (''<code>/proc/acpi/event</code>'') and when an event occurs, executes programs to handle the event. The programs it executes are configured through a set of configuration files, which can be dropped into place by packages or by the admin." ([http://acpid.sourceforge.net/ acpid Sourceforge])
+
</blockquote>
+
  
== Preparing to install ==
+
* Play and manage (create, add more music, delete, rename, etc.) your stations
=== Kernel configuration ===
+
* Rate played songs and let Pandora explain why they have been selected
Before we are ready to emerge acpid, it is a good idea to modify a few things in the kernel. If you have not modified your kernel before, you may want to check out the following page on configuring a kernel manually (page to be added..).
+
* Show upcoming songs and song history
 +
* Configure keybindings
 +
* Last.fm scrobbling support (with the help of an external application)
 +
* Proxy support for listeners outside of the USA
 +
([https://github.com/PromyLOPh/pianobar Homepage])
  
{{kernelop|title=Power management and ACPI options|desc=
+
== Install ==
[*] ACPI (Advanced Configuration and Power Interface) Support
+
To install Pianobar, emerge it:
}}
+
<console>
 +
###i## emerge pianobar
 +
</console>
  
==== Optional: Other ACPI features ====
 
Below are the locations and short descriptions of the function of different ACPI options in the kernel. In the majority of cases, you do not have to alter any of these to have a functional ACPI system.
 
  
* '''AC Adapter'''
+
== Pianobar configuration ==
{{kernelop|title=Power management and ACPI options --->|desc=
+
=== Easy login ===
ACPI (Advanced Configuration and Power Interface) Support --->
+
After you have emerged Pianobar, you can run it with <code>pianobar</code>. If you dislike typing your username and password every time that you run pianobar, create the file <code>~/.config/pianobar/config</code> and add the following lines to it:
      < > AC Adapter
+
{{file|name= ~/.config/pianobar/config|desc= |body=
 +
password = YOURPASSWORD
 +
user = user@email.com
 
}}
 
}}
  
{{fancynote| If you have a system that can switch between being plugged into AC and using a battery (i.e. a laptop), you should compile this option into your kernel.}}
+
=== Easy login (with encryption) ===
 
+
If leaving a plaintext password for your Pandora account somewhere on your filesystem makes you nervous, you can use gpg to decrypt a file that contains your password. Change your configuration to reflect the one below if you would like to encrypt your password:
*  '''Battery'''
+
{{file|name=~/.config/pianobar/config|desc= |body=
{{kernelop
+
password_command = gpg --decrypt ~/.passwords/pianobar
|Power management and ACPI options --->|desc=
+
user = user@email.com
ACPI (Advanced Configuration and Power Interface) Support --->
+
      < > Battery
+
 
}}
 
}}
{{fancynote| As its name would suggest, this option adds or removes support for the battery. More specifically, through /proc/acpi/battery. If you have a laptop or other mobile system, you should probably compile this into your kernel.}}
 
  
* '''Button'''
+
=== Keybindings ===
{{kernelop|title=Power management and ACPI options|desc=
+
To configure keybindings, check out <code>man pianobar</code>. All keybindings can be added to <code>~/.config/pianobar/config</code>. All the keybindings in the man page will begin with the line <code>act_</code>.
ACPI (Advanced Configuration and Power Interface) Support --->
+
      < > Button
+
}}
+
{{fancynote| This driver handles power, sleep, and other buttons. This driver is recommended because it is necessary for software controlled power-off.}}
+
  
* '''Video'''
+
=== Other configuration options ===
{{kernelop|title=Power management and ACPI options|desc=
+
{| {{table}}
ACPI (Advanced Configuration and Power Interface) Support --->
+
!Option
      < > Video
+
!Description
}}
+
|-
{{fancynote| Implements ACPI extensions for integrated graphics devices. Also adds support for setting up a video output. }}
+
|audio_quality
 
+
|The quality of the audio. Can be set to: high, medium, or low.
* '''Fan'''
+
{{kernelop|title=Power management and ACPI options|desc=
+
ACPI (Advanced Configuration and Power Interface) Support --->
+
      < > Fan
+
}}
+
 
+
{{fancynote| Allows user-controlled applications to control fan speeds and access status of fans. }}
+
 
+
* '''Dock'''
+
{{kernelop|title=Power management and ACPI options|desc=
+
ACPI (Advanced Configuration and Power Interface) Support --->
+
      [ ] Dock
+
}}
+
{{fancynote| Builds support in the kernel for docking stations like the Dell Module Bay and the IBM Ultrabay. }}
+
 
+
* '''Processor'''
+
{{kernelop|title=Power management and ACPI options|desc=
+
ACPI (Advanced Configuration and Power Interface) Support --->
+
      < > Processor
+
}}
+
{{fancynote| Helps save power while processor is idling and is required by several cpufreq drivers.}}
+
 
+
* '''Processor Aggregator'''
+
{{kernelop|title=Power management and ACPI options|desc=
+
ACPI (Advanced Configuration and Power Interface) Support --->
+
      < > Processor Aggregator
+
}}
+
 
+
{{fancynote| Allows the host system to practice logical processor idling (a way to reduce power consumption)}}
+
 
+
* '''Thermal Zone'''
+
{{kernelop|title=Power management and ACPI options|desc=
+
ACPI (Advanced Configuration and Power Interface) Support --->
+
      < > Thermal Zone
+
}}
+
{{fancynote| Enables support for ACPI thermal zones. It is encouraged to enable this option, as your system may be damaged without it. }}
+
 
+
== USE Flags ==
+
{| class="wikitable" style="margin: 1em auto;" width=80%
+
! width="20%" | Use flag
+
! width="10%" | Default
+
! width="10%" | Recommended
+
! width="60%" | Description
+
 
|-
 
|-
| style="text-align:center;" | selinux
+
|autostart_station
| style="text-align:center;" | No
+
|Select a station ID that you would like to play when Pianobar starts.
| style="text-align:center; background-color: red;" | No, unless enabled by profile changes
+
|-
| style="text-align:center;" | !!Internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur.
+
|proxy
 +
|Use a http proxy.
 
|}
 
|}
  
== Installing acpid ==
+
== Troubleshooting ==
=== Emerging ===
+
=== Not compiled with threads support ===
After configuring the kernel power management options, we are ready to install {{Package|sys-power/acpid}}. To install acpid, run the following command:
+
If you recieve the following warning message (<code>[aac @ 0x7faccc003cd0] Warning: not compiled with thread support, using thread emulation</code>) while running Pianobar, add threads support to ffmpeg, then rebuild it:
<console>
+
###i## emerge acpid
+
</console>
+
 
+
=== Adding to rc ===
+
After you have finished emerging acpid, you may want to add it to the list of rc services to be started with your system at boot.
+
<console>
+
###i## rc-update add acpid default
+
* service acpid added to runlevel default
+
</console>
+
Then, run the following to start acpid:
+
 
<console>
 
<console>
###i## rc
+
###i## echo "media-video/ffmpeg threads" > /etc/portage/package.use/ffmpeg
* starting acpid ...
+
###i## emerge ffmpeg
 
</console>
 
</console>
[[Category:System]]
+
{{fancynote| As of [https://bugs.funtoo.org/browse/FL-1437 FL-1437], threads support should be enabled on ffmpeg by default.}}
[[Category:First Steps]]
+
 
{{EbuildFooter}}
 
{{EbuildFooter}}

Revision as of 22:54, September 18, 2014

media-sound/pianobar


Source Repository:Gentoo Portage Tree
Homepage

Summary: Pianobar is a console client for the personalized web radio Pandora.

Pianobar


Pianobar is a console client for the personalized web radio Pandora. It features the following abilities:

  • Play and manage (create, add more music, delete, rename, etc.) your stations
  • Rate played songs and let Pandora explain why they have been selected
  • Show upcoming songs and song history
  • Configure keybindings
  • Last.fm scrobbling support (with the help of an external application)
  • Proxy support for listeners outside of the USA

(Homepage)

Install

To install Pianobar, emerge it:

# emerge pianobar


Pianobar configuration

Easy login

After you have emerged Pianobar, you can run it with pianobar. If you dislike typing your username and password every time that you run pianobar, create the file ~/.config/pianobar/config and add the following lines to it:

~/.config/pianobar/config
password = YOURPASSWORD
user = user@email.com

Easy login (with encryption)

If leaving a plaintext password for your Pandora account somewhere on your filesystem makes you nervous, you can use gpg to decrypt a file that contains your password. Change your configuration to reflect the one below if you would like to encrypt your password:

~/.config/pianobar/config
password_command = gpg --decrypt ~/.passwords/pianobar
user = user@email.com

Keybindings

To configure keybindings, check out man pianobar. All keybindings can be added to ~/.config/pianobar/config. All the keybindings in the man page will begin with the line act_.

Other configuration options

Option Description
audio_quality The quality of the audio. Can be set to: high, medium, or low.
autostart_station Select a station ID that you would like to play when Pianobar starts.
proxy Use a http proxy.

Troubleshooting

Not compiled with threads support

If you recieve the following warning message ([aac @ 0x7faccc003cd0] Warning: not compiled with thread support, using thread emulation) while running Pianobar, add threads support to ffmpeg, then rebuild it:

# echo "media-video/ffmpeg threads" > /etc/portage/package.use/ffmpeg
# emerge ffmpeg

Note

As of FL-1437, threads support should be enabled on ffmpeg by default.