https://wiki.archlinux.org/api.php?action=feedcontributions&user=Stubb&feedformat=atomArchWiki - User contributions [en]2024-03-29T13:26:51ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=TLP&diff=235356TLP2012-11-14T13:04:09Z<p>Stubb: Remove deprecated instructions for deamonarray</p>
<hr />
<div>[[Category:Power management]]<br />
'''TLP''' implements advanced power management for Linux. TLP is a pure command line tool with<br />
automated background tasks. It does not contain a GUI. The default configuration provides optimized power saving out of the box. <br />
<br />
{{aur|tlp}} is available in the AUR. Read the the full documentation at the [http://linrunner.de/tlp project homepage].<br />
<br />
== Features ==<br />
Settings depending on the power source ac/bat:<br />
* Kernel laptop mode and dirty buffer params<br />
* CPU scaling governor and mix/max frequencies<br />
* Power aware process scheduler for multi-core/hyper-threading<br />
* Hard disk advanced power magement level and spin down timeout (per disk)<br />
* SATA aggressive link power management (ALPM)<br />
* PCIe active state power management (PCIe ASPM) - Kernel 2.6.35 and above<br />
* Runtime power management for PCI(e) bus devices - Kernel 2.6.35 and above<br />
* Radeon graphics KMS power management - Kernel 2.6.35 and above, not fglrx<br />
* Wifi power saving mode - depending on kernel/driver<br />
* Power off optical drive in drive bay (on battery)<br />
<br />
Additional functions:<br />
* I/O scheduler (per disk)<br />
* USB autosuspend with blacklist (input devices excluded automatically)<br />
* Audio power saving mode - hda_intel, ac97<br />
* Enable or disable integrated radio devices upon system startup and shutdown<br />
* Restore radio device state on system startup (from previous shutdown).<br />
* Radio device wizard: switch radios upon network connect/disconnect and dock/undock<br />
* Disable Wake On LAN<br />
* Integrated wwan state is restored after suspend/hibernate<br />
* Untervolting of Intel processors - requires kernel with PHC-Patch<br />
* Battery charge thresholds - ThinkPads only<br />
* Recalibrate battery - ThinkPads only<br />
<br />
== Installation ==<br />
Just install it from the [https://aur.archlinux.org/packages.php?ID=48464l AUR]. <br />
After successful installation, you can start TLP by typing ''as root/with sudo'':<br />
tlp start<br />
To run TLP automatically upon system startup, enable the service via:<br />
systemctl enable tlp-init.service<br />
<br />
== Configuration ==<br />
The config-file is located at {{ic|/etc/default/tlp}}. A full list of options is documented here: [http://linrunner.de/en/tlp/docs/tlp-configuration.html TLP Configuration]. To make use of the battery-related options, install and configure [[Tp_smapi]]. <br />
<br />
== Kernel 2.6.39 ==<br />
According to this [https://bbs.archlinux.org/viewtopic.php?pid=946633 thread], the kernel 2.6.39 does not allow user-settings to <br />
/sys/module/pcie_aspm/parameters/policy<br />
You can use PCIe ASPM settings by starting the kernel with<br />
pcie_aspm=force<br />
<br />
== External Links ==<br />
* [http://linrunner.de/tlp TLP - Linux Advanced Power Management] - Project homepage & documentation</div>Stubbhttps://wiki.archlinux.org/index.php?title=Wayland&diff=221654Wayland2012-09-05T18:58:43Z<p>Stubb: /* Installation */ Add package xkeyboard-config which is necessary to run weston</p>
<hr />
<div>[[Category:X Server]]<br />
[[zh-CN:Wayland]]<br />
{{Article summary start}}<br />
{{Article summary text|A guide to installing and running the Wayland display server.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|KMS}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
'''Wayland''' is a new windowing protocol for Linux. Utilization of Wayland requires changes to and re-installation of parts of your system's software. Therefore this article will assume you are familiar with the [[Arch Build System]], or at the least the ideas behind [[PKGBUILD]] and [[makepkg]]. For more information on Wayland see its [http://wayland.freedesktop.org/ homepage].<br />
<br />
{{Warning|Wayland is under heavy development and is still an early experiment. Support can not be guaranteed and it may not function as you expect.}}<br />
<br />
== Requirements ==<br />
Currently Wayland will only work with on a system that is utilizing [[KMS]].<br />
<br />
== Installation ==<br />
You need to build and install {{AUR|wayland-git}} and {{AUR|mesa-full-wayland}} from [[AUR]]. Replacement of the Mesa stack is required because the stock one does not support Wayland.<br />
<br />
== Usage ==<br />
As Wayland is only a library, it is useless on its own. To use it, you need a compositor (like Weston), Weston demo applications, Qt5 (or Qt4 with QPA enabled) with Wayland plugin, and/or GTK+ with Wayland support.<br />
<br />
== Weston ==<br />
=== Installation ===<br />
You need to build and install {{Pkg|xkeyboard-config}}, {{AUR|cairo-gl-git}}, {{AUR|libxkbcommon-git}}, {{AUR|libglu}} and {{AUR|weston-git}} from [[AUR]].<br />
<br />
=== Usage ===<br />
Now that Wayland and its requirements are installed you should be ready to test it out. Try switching to a terminal and running:<br />
# weston<br />
Note I was having trouble with keyboard & mouse not working unless this was run as root<br />
<br />
You can also try: <br />
# EGL_DRIVER=/usr/lib/egl/egl_gallium.so<br />
if you have troubles with nouveau driver.<br />
<br />
Then at a TTY you can run the demos:<br />
<br />
# weston-terminal<br />
Should launch a terminal emulator.<br />
<br />
# weston-flower <br />
Moves a flower around the screen. This tests the frame protocol.<br />
<br />
# weston-gears<br />
Runs glxgears on Wayland.<br />
<br />
# weston-image image1.jpg image2.jpg...<br />
Displays images.<br />
<br />
# weston-view doc1.pdf doc2.pdf...<br />
Displays PDF files.<br />
<br />
== Qt ==<br />
<br />
=== Installation ===<br />
You need to build and install {{AUR|qt-qpa}} from [[AUR]]. It contains a development version of Qt 4.8 compiled with QPA (Lighthouse) support. It installs into /opt/qt-qpa because it's binary incompatible with non-QPA version of Qt (like the stock one).<br />
<br />
=== Usage ===<br />
At first, you need a working Wayland compositor, like the one from demo applications, or an experimental version of KWin.<br />
<br />
Then compile any qmake-based Qt project:<br />
# export PATH=/opt/qt-qpa/bin:$PATH<br />
# export LD_LIBRARY_PATH=/opt/qt-qpa/lib<br />
# qmake<br />
# make<br />
<br />
And run it by executing the compiled binary:<br />
# export LD_LIBRARY_PATH=/opt/qt-qpa/lib<br />
# export QT_QPA_PLATFORM=waylandgl<br />
# ./binaryname<br />
<br />
=== Qt Compositor ===<br />
There is ongoing work to make [http://labs.qt.nokia.com/2011/03/18/multi-process-lighthouse/ Qt-Compositor], a base layer to make custom Qt compositors on top of Wayland.<br />
<br />
== Other GUI libraries ==<br />
([http://wayland.freedesktop.org/toolkits.html page from official website])<br />
<br />
===GTK+===<br />
<br />
With GTK+ 3.0, GTK+ gained support for multiple backends at runtime and can switch between backends in the same way Qt can with lighthouse. The Wayland support is on the upstream GTK+ master branch but disabled by default. To try GTK+ on Wayland, check out gtk+ and pass <code>--enable-wayland</code> to configure:<br />
<br />
# git clone git://git.gnome.org/gtk+<br />
# cd gtk+<br />
# ./configure --prefix=/usr --enable-x11-backend --enable-wayland-backend --enable-debug=yes<br />
# make<br />
<br />
When both Wayland and X backends are enabled, GTK+ will default to the X11 backend, but this can be overridden by setting the <code>GDK_BACKEND</code> environment variable to <code>wayland</code>.<br />
<br />
{{Note|Alternatively, you can install {{AUR|gtk3-git}} from the [[AUR]].}}<br />
<br />
===Clutter===<br />
<br />
The Clutter toolkit has a Wayland backend that allows it to run as a Wayland client. The backend is in the master branch of the [http://git.gnome.org/browse/clutter main repo] and can be activated by passing <code>--with-flavour=wayland</code> to the configure script.<br />
<br />
===SDL===<br />
<br />
Benjamin Franzke is working on a port of SDL to Wayland, it's available in his [http://cgit.freedesktop.org/~bnf/sdl-wayland/ sdl-wayland repo] on freedesktop.org. Further development upon Benjamins work was done by Andre Heider in his [https://github.com/dhewg/libsdl/tree/wl wayland branch] of libsdl.<br />
<br />
===EFL===<br />
<br />
EFL has complete Wayland support. Please see [http://trac.enlightenment.org/e/wiki/Wayland here] for details.<br />
<br />
==Window managers and desktop shells==<br />
<br />
===KDE===<br />
<br />
The KDE Wayland support is expected to come in three phases, with the first two phases expected to be completed this year during the KDE SC 4.8 and 4.9 development cycles. Please see [http://community.kde.org/KWin/Wayland here] for details.<br />
<br />
Also, there is [http://blog.martin-graesslin.com/blog/2011/03/kwin-at-gsoc-2011/ early work] to make it possible to run KWin (KDE's window manager) on Wayland.<br />
<br />
===GNOME===<br />
<br />
GNOME will be ported to Wayland in a future version.<br />
<br />
===Unity===<br />
Ubuntu desktop shell Unity, using Compiz window manager, was [http://www.markshuttleworth.com/archives/551 announced] to be ported to Wayland.<br />
<br />
==Troubleshooting==<br />
<br />
===Invisible cursor===<br />
<br />
Make sure you have a file called index.theme in the ~/.icons/default/ directory, if you do not have one already. In this file you can set your mouse cursor theme to any that already exist on your system. For example:<br />
{{hc|1=~/.icons/default/index.theme|2=<br />
Name=Default<br />
Comment=Default Theme<br />
Inherits=Vanilla-DMZ<br />
}}<br />
<br />
More at [[X11_Cursors]].<br />
<br />
===Input permissions===<br />
It looks like the arch packaging provides weston-launch that is not SUID root, so input hardware (keyboard / mouse) won't work (on DRM / outside of X). You can fix this by running "chown root weston-launch; chmod +s weston-launch". I suspect the chown is unnecessary, but I don't have an arch system on which to check.<br />
<br />
==External links==<br />
* [https://bbs.archlinux.org/viewtopic.php?id=107499 Arch Linux forum discussion]<br />
* [http://wayland.freedesktop.org/docs/html/ Wayland documentation online]</div>Stubbhttps://wiki.archlinux.org/index.php?title=Wayland&diff=220889Wayland2012-09-01T00:56:28Z<p>Stubb: /* SDL */ Added link to https://github.com/dhewg/libsdl/tree/wl</p>
<hr />
<div>[[Category:X Server]]<br />
[[zh-CN:Wayland]]<br />
{{Article summary start}}<br />
{{Article summary text|A guide to installing and running the Wayland display server.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|KMS}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
'''Wayland''' is a new windowing protocol for Linux. Utilization of Wayland requires changes to and re-installation of parts of your system's software. Therefore this article will assume you are familiar with the [[Arch Build System]], or at the least the ideas behind [[PKGBUILD]] and [[makepkg]]. For more information on Wayland see its [http://wayland.freedesktop.org/ homepage].<br />
<br />
{{Warning|Wayland is under heavy development and is still an early experiment. Support can not be guaranteed and it may not function as you expect.}}<br />
<br />
== Requirements ==<br />
Currently Wayland will only work with on a system that is utilizing [[KMS]].<br />
<br />
== Installation ==<br />
You need to build and install {{AUR|wayland-git}} and {{AUR|mesa-full-wayland}} from [[AUR]]. Replacement of the Mesa stack is required because the stock one does not support Wayland.<br />
<br />
== Usage ==<br />
As Wayland is only a library, it is useless on its own. To use it, you need a compositor (like Weston), Weston demo applications, Qt with QPA (Lighthouse) support and Wayland plugin, and/or GTK+ with Wayland support.<br />
<br />
== Weston ==<br />
=== Installation ===<br />
You need to build and install {{AUR|cairo-gl-git}}, {{AUR|libxkbcommon-git}} and {{AUR|weston-git}} from [[AUR]].<br />
<br />
=== Usage ===<br />
Now that Wayland and its requirements are installed you should be ready to test it out. Try switching to a terminal and running:<br />
# weston<br />
Note I was having trouble with keyboard & mouse not working unless this was run as root<br />
<br />
You can also try: <br />
# EGL_DRIVER=/usr/lib/egl/egl_gallium.so<br />
if you have troubles with nouveau driver.<br />
<br />
Then at a TTY you can run the demos:<br />
<br />
# weston-terminal<br />
Should launch a terminal emulator.<br />
<br />
# weston-flower <br />
Moves a flower around the screen. This tests the frame protocol.<br />
<br />
# weston-gears<br />
Runs glxgears on Wayland.<br />
<br />
# weston-image image1.jpg image2.jpg...<br />
Displays images.<br />
<br />
# weston-view doc1.pdf doc2.pdf...<br />
Displays PDF files.<br />
<br />
== Qt ==<br />
<br />
=== Installation ===<br />
You need to build and install {{AUR|qt-qpa}} from [[AUR]]. It contains a development version of Qt 4.8 compiled with QPA (Lighthouse) support. It installs into /opt/qt-qpa because it's binary incompatible with non-QPA version of Qt (like the stock one).<br />
<br />
=== Usage ===<br />
At first, you need a working Wayland compositor, like the one from demo applications, or an experimental version of KWin.<br />
<br />
Then compile any qmake-based Qt project:<br />
# export PATH=/opt/qt-qpa/bin:$PATH<br />
# export LD_LIBRARY_PATH=/opt/qt-qpa/lib<br />
# qmake<br />
# make<br />
<br />
And run it by executing the compiled binary:<br />
# export LD_LIBRARY_PATH=/opt/qt-qpa/lib<br />
# export QT_QPA_PLATFORM=waylandgl<br />
# ./binaryname<br />
<br />
=== Qt Compositor ===<br />
There is ongoing work to make [http://labs.qt.nokia.com/2011/03/18/multi-process-lighthouse/ Qt-Compositor], a base layer to make custom Qt compositors on top of Wayland.<br />
<br />
== Other GUI libraries ==<br />
([http://wayland.freedesktop.org/toolkits.html page from official website])<br />
<br />
===GTK+===<br />
<br />
With GTK+ 3.0, GTK+ gained support for multiple backends at runtime and can switch between backends in the same way Qt can with lighthouse. The Wayland support is on the upstream GTK+ master branch but disabled by default. To try GTK+ on Wayland, check out gtk+ and pass <code>--enable-wayland</code> to configure:<br />
<br />
# git clone git://git.gnome.org/gtk+<br />
# cd gtk+<br />
# ./configure --prefix=/usr --enable-x11-backend --enable-wayland-backend --enable-debug=yes<br />
# make<br />
<br />
When both Wayland and X backends are enabled, GTK+ will default to the X11 backend, but this can be overridden by setting the <code>GDK_BACKEND</code> environment variable to <code>wayland</code>.<br />
<br />
{{Note|Alternatively, you can install {{AUR|gtk3-git}} from the [[AUR]].}}<br />
<br />
===Clutter===<br />
<br />
The Clutter toolkit has a Wayland backend that allows it to run as a Wayland client. The backend is in the master branch of the [http://git.gnome.org/browse/clutter main repo] and can be activated by passing <code>--with-flavour=wayland</code> to the configure script.<br />
<br />
===SDL===<br />
<br />
Benjamin Franzke is working on a port of SDL to Wayland, it's available in his [http://cgit.freedesktop.org/~bnf/sdl-wayland/ sdl-wayland repo] on freedesktop.org. Further development upon Benjamins work was done by Andre Heider in his [https://github.com/dhewg/libsdl/tree/wl wayland branch] of libsdl.<br />
<br />
===EFL===<br />
<br />
EFL has complete Wayland support. Please see [http://trac.enlightenment.org/e/wiki/Wayland here] for details.<br />
<br />
==Window managers and desktop shells==<br />
<br />
===KDE===<br />
<br />
The KDE Wayland support is expected to come in three phases, with the first two phases expected to be completed this year during the KDE SC 4.8 and 4.9 development cycles. Please see [http://community.kde.org/KWin/Wayland here] for details.<br />
<br />
Also, there is [http://blog.martin-graesslin.com/blog/2011/03/kwin-at-gsoc-2011/ early work] to make it possible to run KWin (KDE's window manager) on Wayland.<br />
<br />
===GNOME===<br />
<br />
GNOME will be ported to Wayland in a future version.<br />
<br />
===Unity===<br />
Ubuntu desktop shell Unity, using Compiz window manager, was [http://www.markshuttleworth.com/archives/551 announced] to be ported to Wayland.<br />
<br />
==Troubleshooting==<br />
<br />
===Invisible cursor===<br />
<br />
Make sure you have a file called index.theme in the ~/.icons/default/ directory, if you do not have one already. In this file you can set your mouse cursor theme to any that already exist on your system. For example:<br />
{{hc|1=~/.icons/default/index.theme|2=<br />
Name=Default<br />
Comment=Default Theme<br />
Inherits=Vanilla-DMZ<br />
}}<br />
<br />
More at [[X11_Cursors]].<br />
<br />
==External links==<br />
* [https://bbs.archlinux.org/viewtopic.php?id=107499 Arch Linux forum discussion]<br />
* [http://wayland.freedesktop.org/docs/html/ Wayland documentation online]</div>Stubbhttps://wiki.archlinux.org/index.php?title=Talk:Blu-ray&diff=184884Talk:Blu-ray2012-02-15T16:10:13Z<p>Stubb: </p>
<hr />
<div>* I would like to know, if the solutions described in this page, also supports navigation, menus, chapters etc. of bluray-discs. And additionally, is there any automount-script for bluray discs which also includes the aacs-decryption. --[[User:Onny|Onny]] 11:55, 20 December 2011 (EST)<br />
** BD Menus aren't supported by libbluray, but with vlc player you can use navigation and chapters --[[User:stubb|stubb]] 16:09, 15 Feb 2012</div>Stubbhttps://wiki.archlinux.org/index.php?title=Blu-ray&diff=184881Blu-ray2012-02-15T15:52:46Z<p>Stubb: /* Fast & Simple */</p>
<hr />
<div>[[Category:Audio/Video (English)]]<br />
{{i18n|BluRay}}<br />
{{stub}}<br />
==Playback==<br />
===Preparation===<br />
Firstly install [https://aur.archlinux.org/packages.php?ID=45974 libaacs], [https://aur.archlinux.org/packages.php?ID=40657 libbluray-git] (/usr/share/java/apache-ant/bin must exist in $PATH while installing libbluray-git).<br />
<br />
==== Fast & Simple ====<br />
Now put http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg (no pregenerated keys, contains a real hcert) in ~/.config/aacs/ .<br />
<pre>cd ~/.config/aacs/ && wget http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg</pre><br />
<br />
===== If Fast & Simple doesn't work =====<br />
If bluray playback with the hcert mentioned above doesn't work, install [https://aur.archlinux.org/packages.php?ID=45099 aacskeys] and get KEYDB.cfg from http://forum.doom9.org/attachment.php?attachmentid=11170&d=1276615904 and unzip it into ~/.config/aacs/. Then run <pre>sed -i 's/\([[:xdigit:]]\)\{5,\}/0x&/g' ~/.config/aacs/KEYDB.cfg"</pre><br />
<br />
Next, mount the bluray to a directory. eg: <pre># mount /dev/sr0 /media/blurays</pre><br />
<br />
Now the bluray has to be added to the key database so that libaacs can decrypt it. To do this, cd into /usr/share/aacskeys and run: <pre>aacskeys </bluray/mount/dir></pre> eg: <pre>cd /usr/share/aacskeys && aacskeys /media/blurays</pre><br />
<br />
Edit ~/.config/aacs/KEYDB.cfg and add the information outputted by aacskeys using this syntax:<br />
<pre>0x<unit key file hash> = Film Title | V | 0x<volume unique key></pre><br />
<br />
===== If aacskeys aren't able to generate the key =====<br />
Try to generate the VolumeID with DumpVID using wine (Windows only?). the VolumeID can now used to generate the bluraykey with aacskeys with the VolumeID option<br />
<pre>Usage: aacskeys [options] <mountpath> [volume id / binding nonce]<br />
</pre><br />
<br />
===mplayer===<br />
To play blurays in mplayer you will need [https://aur.archlinux.org/packages.php?ID=40658 mplayer-bluray] installed.<br />
<br />
The basic playback command is:<br />
<pre>mplayer br:///</bluray/mount/dir></pre><br />
<br />
====Troubleshooting====<br />
=====Stuttering Video=====<br />
It is likely that you will need to enable hardware acceleration and multi core CPU support for the bluray to play smoothly.<br />
<br />
For nvidia cards, enable hardware acceleration by installing libvdpau and using the option '-vo vdpau' with mplayer. eg:<br />
<pre>mplayer -vo vdpau br:///</bluray/mount/dir></pre><br />
<br />
For multi core CPU support use the options '-lavdopts threads=N', where 'N' is the number of cores. eg:<br />
<pre>mplayer -lavdopts threads=2 br:///</bluray/mount/dir></pre><br />
<br />
=====Incorrect Audio Language=====<br />
You can scroll through the playback languages using the '#' key.<br />
<br />
=====Out of Sync Audio=====<br />
From your first mplayer output, you must find the codec used for the bluray. It will be at the end of the line "Selected video codec".<br />
<br />
For H.264 discs use the option '-vc ffh264vdpau'. eg:<br />
<pre>mplayer -vc ffh264vdpau br:///</bluray/mount/dir></pre><br />
For VC-1 discs use '-vc ffvc1vdpau'. eg:<br />
<pre>mplayer -vc ffvc1vdpau br:///</bluray/mount/dir></pre><br />
For MPEG discs use '-vc ffmpeg12vdpau'. eg:<br />
<pre>mplayer -vc ffmpeg12vdpau br:///</bluray/mount/dir></pre><br />
<br />
===vlc===<br />
Currently vlc only supports bluray playback in development versions, so you will need to install [https://aur.archlinux.org/packages.php?ID=16084 vlc-git].<br />
<br />
Start playback with: <pre>vlc bluray://</bluray/mount/dir></pre><br />
<br />
==Other Useful Software==<br />
<br />
For DVD, the [http://www.archlinux.org/packages/extra/x86_64/libdvdcss libdvdcss] package supplies the needed decryption libs. Below are some options for BluRay/HD-DVD decryption. Users can employ to backup a commercial BluRay movie under Fair Use guidelines:<br />
<br />
*[https://aur.archlinux.org/packages.php?ID=45099 aacskeys] - Opensource<br />
*[https://aur.archlinux.org/packages.php?ID=45101 dumphd] - Opensource<br />
*[https://aur.archlinux.org/packages.php?ID=33972 makemkv] - Closed source/limited free beta<br />
<br />
*[http://www.slysoft.com/en/anydvdhd.html anydvdhd] - Commercial software requiring users to run it on an Microsoft OS in a VM.</div>Stubbhttps://wiki.archlinux.org/index.php?title=Blu-ray&diff=184878Blu-ray2012-02-15T15:44:32Z<p>Stubb: /* If Fast & Simple doesn't work */</p>
<hr />
<div>[[Category:Audio/Video (English)]]<br />
{{i18n|BluRay}}<br />
{{stub}}<br />
==Playback==<br />
===Preparation===<br />
Firstly install [https://aur.archlinux.org/packages.php?ID=45974 libaacs], [https://aur.archlinux.org/packages.php?ID=40657 libbluray-git] (/usr/share/java/apache-ant/bin must exist in $PATH while installing libbluray-git).<br />
<br />
==== Fast & Simple ====<br />
Now put http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg (no pregenerated keys, contains a real hcert) in ~/.config/aacs/ .<br />
<br />
===== If Fast & Simple doesn't work =====<br />
If bluray playback with the hcert mentioned above doesn't work, install [https://aur.archlinux.org/packages.php?ID=45099 aacskeys] and get KEYDB.cfg from http://forum.doom9.org/attachment.php?attachmentid=11170&d=1276615904 and unzip it into ~/.config/aacs/. Then run <pre>sed -i 's/\([[:xdigit:]]\)\{5,\}/0x&/g' ~/.config/aacs/KEYDB.cfg"</pre><br />
<br />
Next, mount the bluray to a directory. eg: <pre># mount /dev/sr0 /media/blurays</pre><br />
<br />
Now the bluray has to be added to the key database so that libaacs can decrypt it. To do this, cd into /usr/share/aacskeys and run: <pre>aacskeys </bluray/mount/dir></pre> eg: <pre>cd /usr/share/aacskeys && aacskeys /media/blurays</pre><br />
<br />
Edit ~/.config/aacs/KEYDB.cfg and add the information outputted by aacskeys using this syntax:<br />
<pre>0x<unit key file hash> = Film Title | V | 0x<volume unique key></pre><br />
<br />
===== If aacskeys aren't able to generate the key =====<br />
Try to generate the VolumeID with DumpVID using wine (Windows only?). the VolumeID can now used to generate the bluraykey with aacskeys with the VolumeID option<br />
<pre>Usage: aacskeys [options] <mountpath> [volume id / binding nonce]<br />
</pre><br />
<br />
===mplayer===<br />
To play blurays in mplayer you will need [https://aur.archlinux.org/packages.php?ID=40658 mplayer-bluray] installed.<br />
<br />
The basic playback command is:<br />
<pre>mplayer br:///</bluray/mount/dir></pre><br />
<br />
====Troubleshooting====<br />
=====Stuttering Video=====<br />
It is likely that you will need to enable hardware acceleration and multi core CPU support for the bluray to play smoothly.<br />
<br />
For nvidia cards, enable hardware acceleration by installing libvdpau and using the option '-vo vdpau' with mplayer. eg:<br />
<pre>mplayer -vo vdpau br:///</bluray/mount/dir></pre><br />
<br />
For multi core CPU support use the options '-lavdopts threads=N', where 'N' is the number of cores. eg:<br />
<pre>mplayer -lavdopts threads=2 br:///</bluray/mount/dir></pre><br />
<br />
=====Incorrect Audio Language=====<br />
You can scroll through the playback languages using the '#' key.<br />
<br />
=====Out of Sync Audio=====<br />
From your first mplayer output, you must find the codec used for the bluray. It will be at the end of the line "Selected video codec".<br />
<br />
For H.264 discs use the option '-vc ffh264vdpau'. eg:<br />
<pre>mplayer -vc ffh264vdpau br:///</bluray/mount/dir></pre><br />
For VC-1 discs use '-vc ffvc1vdpau'. eg:<br />
<pre>mplayer -vc ffvc1vdpau br:///</bluray/mount/dir></pre><br />
For MPEG discs use '-vc ffmpeg12vdpau'. eg:<br />
<pre>mplayer -vc ffmpeg12vdpau br:///</bluray/mount/dir></pre><br />
<br />
===vlc===<br />
Currently vlc only supports bluray playback in development versions, so you will need to install [https://aur.archlinux.org/packages.php?ID=16084 vlc-git].<br />
<br />
Start playback with: <pre>vlc bluray://</bluray/mount/dir></pre><br />
<br />
==Other Useful Software==<br />
<br />
For DVD, the [http://www.archlinux.org/packages/extra/x86_64/libdvdcss libdvdcss] package supplies the needed decryption libs. Below are some options for BluRay/HD-DVD decryption. Users can employ to backup a commercial BluRay movie under Fair Use guidelines:<br />
<br />
*[https://aur.archlinux.org/packages.php?ID=45099 aacskeys] - Opensource<br />
*[https://aur.archlinux.org/packages.php?ID=45101 dumphd] - Opensource<br />
*[https://aur.archlinux.org/packages.php?ID=33972 makemkv] - Closed source/limited free beta<br />
<br />
*[http://www.slysoft.com/en/anydvdhd.html anydvdhd] - Commercial software requiring users to run it on an Microsoft OS in a VM.</div>Stubbhttps://wiki.archlinux.org/index.php?title=Blu-ray&diff=184877Blu-ray2012-02-15T15:40:10Z<p>Stubb: </p>
<hr />
<div>[[Category:Audio/Video (English)]]<br />
{{i18n|BluRay}}<br />
{{stub}}<br />
==Playback==<br />
===Preparation===<br />
Firstly install [https://aur.archlinux.org/packages.php?ID=45974 libaacs], [https://aur.archlinux.org/packages.php?ID=40657 libbluray-git] (/usr/share/java/apache-ant/bin must exist in $PATH while installing libbluray-git).<br />
<br />
==== Fast & Simple ====<br />
Now put http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg (no pregenerated keys, contains a real hcert) in ~/.config/aacs/ .<br />
<br />
===== If Fast & Simple doesn't work =====<br />
If bluray playback doesn't work with the KEYDB mentioned above doesn't work, install [https://aur.archlinux.org/packages.php?ID=45099 aacskeys] and get KEYDB.cfg from http://forum.doom9.org/attachment.php?attachmentid=11170&d=1276615904 and unzip it into ~/.config/aacs/. Then run <pre>sed -i 's/\([[:xdigit:]]\)\{5,\}/0x&/g' ~/.config/aacs/KEYDB.cfg"</pre><br />
<br />
Next, mount the bluray to a directory. eg: <pre># mount /dev/sr0 /media/blurays</pre><br />
<br />
Now the bluray has to be added to the key database so that libaacs can decrypt it. To do this, cd into /usr/share/aacskeys and run: <pre>aacskeys </bluray/mount/dir></pre> eg: <pre>cd /usr/share/aacskeys && aacskeys /media/blurays</pre><br />
<br />
Edit ~/.config/aacs/KEYDB.cfg and add the information outputted by aacskeys using this syntax:<br />
<pre>0x<unit key file hash> = Film Title | V | 0x<volume unique key></pre><br />
===== If aacskeys aren't able to generate the key =====<br />
Try to generate the VolumeID with DumpVID using wine (Windows only?). the VolumeID can now used to generate the bluraykey with aacskeys with the VolumeID option<br />
<pre>Usage: aacskeys [options] <mountpath> [volume id / binding nonce]<br />
</pre><br />
<br />
===mplayer===<br />
To play blurays in mplayer you will need [https://aur.archlinux.org/packages.php?ID=40658 mplayer-bluray] installed.<br />
<br />
The basic playback command is:<br />
<pre>mplayer br:///</bluray/mount/dir></pre><br />
<br />
====Troubleshooting====<br />
=====Stuttering Video=====<br />
It is likely that you will need to enable hardware acceleration and multi core CPU support for the bluray to play smoothly.<br />
<br />
For nvidia cards, enable hardware acceleration by installing libvdpau and using the option '-vo vdpau' with mplayer. eg:<br />
<pre>mplayer -vo vdpau br:///</bluray/mount/dir></pre><br />
<br />
For multi core CPU support use the options '-lavdopts threads=N', where 'N' is the number of cores. eg:<br />
<pre>mplayer -lavdopts threads=2 br:///</bluray/mount/dir></pre><br />
<br />
=====Incorrect Audio Language=====<br />
You can scroll through the playback languages using the '#' key.<br />
<br />
=====Out of Sync Audio=====<br />
From your first mplayer output, you must find the codec used for the bluray. It will be at the end of the line "Selected video codec".<br />
<br />
For H.264 discs use the option '-vc ffh264vdpau'. eg:<br />
<pre>mplayer -vc ffh264vdpau br:///</bluray/mount/dir></pre><br />
For VC-1 discs use '-vc ffvc1vdpau'. eg:<br />
<pre>mplayer -vc ffvc1vdpau br:///</bluray/mount/dir></pre><br />
For MPEG discs use '-vc ffmpeg12vdpau'. eg:<br />
<pre>mplayer -vc ffmpeg12vdpau br:///</bluray/mount/dir></pre><br />
<br />
===vlc===<br />
Currently vlc only supports bluray playback in development versions, so you will need to install [https://aur.archlinux.org/packages.php?ID=16084 vlc-git].<br />
<br />
Start playback with: <pre>vlc bluray://</bluray/mount/dir></pre><br />
<br />
==Other Useful Software==<br />
<br />
For DVD, the [http://www.archlinux.org/packages/extra/x86_64/libdvdcss libdvdcss] package supplies the needed decryption libs. Below are some options for BluRay/HD-DVD decryption. Users can employ to backup a commercial BluRay movie under Fair Use guidelines:<br />
<br />
*[https://aur.archlinux.org/packages.php?ID=45099 aacskeys] - Opensource<br />
*[https://aur.archlinux.org/packages.php?ID=45101 dumphd] - Opensource<br />
*[https://aur.archlinux.org/packages.php?ID=33972 makemkv] - Closed source/limited free beta<br />
<br />
*[http://www.slysoft.com/en/anydvdhd.html anydvdhd] - Commercial software requiring users to run it on an Microsoft OS in a VM.</div>Stubbhttps://wiki.archlinux.org/index.php?title=Blu-ray&diff=184875Blu-ray2012-02-15T15:38:11Z<p>Stubb: /* If Fast & Simple doesn't work */</p>
<hr />
<div>[[Category:Audio/Video (English)]]<br />
{{i18n|BluRay}}<br />
{{stub}}<br />
==Playback==<br />
===Preparation===<br />
Firstly install [https://aur.archlinux.org/packages.php?ID=45974 libaacs], [https://aur.archlinux.org/packages.php?ID=40657 libbluray-git] (/usr/share/java/apache-ant/bin must exist in $PATH while installing libbluray-git).<br />
<br />
== Fast & Simple ==<br />
Now put http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg (no pregenerated keys, contains a real hcert) in ~/.config/aacs/ .<br />
<br />
== If Fast & Simple doesn't work ==<br />
If bluray playback doesn't work with the KEYDB mentioned above doesn't work, install [https://aur.archlinux.org/packages.php?ID=45099 aacskeys] and get KEYDB.cfg from http://forum.doom9.org/attachment.php?attachmentid=11170&d=1276615904 and unzip it into ~/.config/aacs/. Then run <pre>sed -i 's/\([[:xdigit:]]\)\{5,\}/0x&/g' ~/.config/aacs/KEYDB.cfg"</pre><br />
<br />
Next, mount the bluray to a directory. eg: <pre># mount /dev/sr0 /media/blurays</pre><br />
<br />
Now the bluray has to be added to the key database so that libaacs can decrypt it. To do this, cd into /usr/share/aacskeys and run: <pre>aacskeys </bluray/mount/dir></pre> eg: <pre>cd /usr/share/aacskeys && aacskeys /media/blurays</pre><br />
<br />
Edit ~/.config/aacs/KEYDB.cfg and add the information outputted by aacskeys using this syntax:<br />
<pre>0x<unit key file hash> = Film Title | V | 0x<volume unique key></pre><br />
=== If aacskeys aren't able to generate the key ===<br />
Try to generate the VolumeID with DumpVID using wine (Windows only?). the VolumeID can now used to generate the bluraykey with aacskeys with the VolumeID option<br />
<pre>Usage: aacskeys [options] <mountpath> [volume id / binding nonce]<br />
</pre><br />
<br />
===mplayer===<br />
To play blurays in mplayer you will need [https://aur.archlinux.org/packages.php?ID=40658 mplayer-bluray] installed.<br />
<br />
The basic playback command is:<br />
<pre>mplayer br:///</bluray/mount/dir></pre><br />
<br />
====Troubleshooting====<br />
=====Stuttering Video=====<br />
It is likely that you will need to enable hardware acceleration and multi core CPU support for the bluray to play smoothly.<br />
<br />
For nvidia cards, enable hardware acceleration by installing libvdpau and using the option '-vo vdpau' with mplayer. eg:<br />
<pre>mplayer -vo vdpau br:///</bluray/mount/dir></pre><br />
<br />
For multi core CPU support use the options '-lavdopts threads=N', where 'N' is the number of cores. eg:<br />
<pre>mplayer -lavdopts threads=2 br:///</bluray/mount/dir></pre><br />
<br />
=====Incorrect Audio Language=====<br />
You can scroll through the playback languages using the '#' key.<br />
<br />
=====Out of Sync Audio=====<br />
From your first mplayer output, you must find the codec used for the bluray. It will be at the end of the line "Selected video codec".<br />
<br />
For H.264 discs use the option '-vc ffh264vdpau'. eg:<br />
<pre>mplayer -vc ffh264vdpau br:///</bluray/mount/dir></pre><br />
For VC-1 discs use '-vc ffvc1vdpau'. eg:<br />
<pre>mplayer -vc ffvc1vdpau br:///</bluray/mount/dir></pre><br />
For MPEG discs use '-vc ffmpeg12vdpau'. eg:<br />
<pre>mplayer -vc ffmpeg12vdpau br:///</bluray/mount/dir></pre><br />
<br />
===vlc===<br />
Currently vlc only supports bluray playback in development versions, so you will need to install [https://aur.archlinux.org/packages.php?ID=16084 vlc-git].<br />
<br />
Start playback with: <pre>vlc bluray://</bluray/mount/dir></pre><br />
<br />
==Other Useful Software==<br />
<br />
For DVD, the [http://www.archlinux.org/packages/extra/x86_64/libdvdcss libdvdcss] package supplies the needed decryption libs. Below are some options for BluRay/HD-DVD decryption. Users can employ to backup a commercial BluRay movie under Fair Use guidelines:<br />
<br />
*[https://aur.archlinux.org/packages.php?ID=45099 aacskeys] - Opensource<br />
*[https://aur.archlinux.org/packages.php?ID=45101 dumphd] - Opensource<br />
*[https://aur.archlinux.org/packages.php?ID=33972 makemkv] - Closed source/limited free beta<br />
<br />
*[http://www.slysoft.com/en/anydvdhd.html anydvdhd] - Commercial software requiring users to run it on an Microsoft OS in a VM.</div>Stubbhttps://wiki.archlinux.org/index.php?title=Blu-ray&diff=184874Blu-ray2012-02-15T15:35:55Z<p>Stubb: /* Preparation */</p>
<hr />
<div>[[Category:Audio/Video (English)]]<br />
{{i18n|BluRay}}<br />
{{stub}}<br />
==Playback==<br />
===Preparation===<br />
Firstly install [https://aur.archlinux.org/packages.php?ID=45974 libaacs], [https://aur.archlinux.org/packages.php?ID=40657 libbluray-git] (/usr/share/java/apache-ant/bin must exist in $PATH while installing libbluray-git).<br />
<br />
== Fast & Simple ==<br />
Now put http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg (no pregenerated keys, contains a real hcert) in ~/.config/aacs/ .<br />
<br />
== If Fast & Simple doesn't work ==<br />
If bluray playback doesn't work with the KEYDB mentioned above doesn't work, install [https://aur.archlinux.org/packages.php?ID=45099 aacskeys] and get KEYDB.cfg from http://forum.doom9.org/attachment.php?attachmentid=11170&d=1276615904 and unzip it into ~/.config/aacs/. Then run <pre>sed -i 's/\([[:xdigit:]]\)\{5,\}/0x&/g' ~/.config/aacs/KEYDB.cfg"</pre><br />
<br />
Next, mount the bluray to a directory. eg: <pre># mount /dev/sr0 /media/blurays</pre><br />
<br />
Now the bluray has to be added to the key database so that libaacs can decrypt it. To do this, cd into /usr/share/aacskeys and run: <pre>aacskeys </bluray/mount/dir></pre> eg: <pre>cd /usr/share/aacskeys && aacskeys /media/blurays</pre><br />
<br />
Edit ~/.config/aacs/KEYDB.cfg and add the information outputted by aacskeys using this syntax:<br />
<pre>0x<unit key file hash> = Film Title | V | 0x<volume unique key></pre><br />
<br />
Another way to generate the VolumeID is using DumpVID (Windows only?), the VolumeID can now used to generate the bluraykey with aacskeys with the VolumeID option<br />
<pre>Usage: aacskeys [options] <mountpath> [volume id / binding nonce]<br />
</pre><br />
<br />
===mplayer===<br />
To play blurays in mplayer you will need [https://aur.archlinux.org/packages.php?ID=40658 mplayer-bluray] installed.<br />
<br />
The basic playback command is:<br />
<pre>mplayer br:///</bluray/mount/dir></pre><br />
<br />
====Troubleshooting====<br />
=====Stuttering Video=====<br />
It is likely that you will need to enable hardware acceleration and multi core CPU support for the bluray to play smoothly.<br />
<br />
For nvidia cards, enable hardware acceleration by installing libvdpau and using the option '-vo vdpau' with mplayer. eg:<br />
<pre>mplayer -vo vdpau br:///</bluray/mount/dir></pre><br />
<br />
For multi core CPU support use the options '-lavdopts threads=N', where 'N' is the number of cores. eg:<br />
<pre>mplayer -lavdopts threads=2 br:///</bluray/mount/dir></pre><br />
<br />
=====Incorrect Audio Language=====<br />
You can scroll through the playback languages using the '#' key.<br />
<br />
=====Out of Sync Audio=====<br />
From your first mplayer output, you must find the codec used for the bluray. It will be at the end of the line "Selected video codec".<br />
<br />
For H.264 discs use the option '-vc ffh264vdpau'. eg:<br />
<pre>mplayer -vc ffh264vdpau br:///</bluray/mount/dir></pre><br />
For VC-1 discs use '-vc ffvc1vdpau'. eg:<br />
<pre>mplayer -vc ffvc1vdpau br:///</bluray/mount/dir></pre><br />
For MPEG discs use '-vc ffmpeg12vdpau'. eg:<br />
<pre>mplayer -vc ffmpeg12vdpau br:///</bluray/mount/dir></pre><br />
<br />
===vlc===<br />
Currently vlc only supports bluray playback in development versions, so you will need to install [https://aur.archlinux.org/packages.php?ID=16084 vlc-git].<br />
<br />
Start playback with: <pre>vlc bluray://</bluray/mount/dir></pre><br />
<br />
==Other Useful Software==<br />
<br />
For DVD, the [http://www.archlinux.org/packages/extra/x86_64/libdvdcss libdvdcss] package supplies the needed decryption libs. Below are some options for BluRay/HD-DVD decryption. Users can employ to backup a commercial BluRay movie under Fair Use guidelines:<br />
<br />
*[https://aur.archlinux.org/packages.php?ID=45099 aacskeys] - Opensource<br />
*[https://aur.archlinux.org/packages.php?ID=45101 dumphd] - Opensource<br />
*[https://aur.archlinux.org/packages.php?ID=33972 makemkv] - Closed source/limited free beta<br />
<br />
*[http://www.slysoft.com/en/anydvdhd.html anydvdhd] - Commercial software requiring users to run it on an Microsoft OS in a VM.</div>Stubbhttps://wiki.archlinux.org/index.php?title=Blu-ray&diff=184871Blu-ray2012-02-15T15:22:17Z<p>Stubb: /* Preparation */</p>
<hr />
<div>[[Category:Audio/Video (English)]]<br />
{{i18n|BluRay}}<br />
{{stub}}<br />
==Playback==<br />
===Preparation===<br />
Firstly install [https://aur.archlinux.org/packages.php?ID=45974 libaacs], [https://aur.archlinux.org/packages.php?ID=45099 aacskeys] and [https://aur.archlinux.org/packages.php?ID=40657 libbluray-git] (/usr/share/java/apache-ant/bin must exist in $PATH while installing libbluray-git).<br />
<br />
(Optional) Get KEYDB.cfg from http://forum.doom9.org/attachment.php?attachmentid=11170&d=1276615904 and unzip it into ~/.config/aacs/. Then run <pre>sed -i 's/\([[:xdigit:]]\)\{5,\}/0x&/g' ~/.config/aacs/KEYDB.cfg"</pre><br />
<br />
or easily use this one http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg (no pregenerated keys, contains a real hcert) and put it in ~/.config/aacs/ .<br />
<br />
Next, mount the bluray to a directory. eg: <pre># mount /dev/sr0 /media/blurays</pre><br />
<br />
Now the bluray has to be added to the key database so that libaacs can decrypt it. To do this, cd into /usr/share/aacskeys and run: <pre>aacskeys </bluray/mount/dir></pre> eg: <pre>cd /usr/share/aacskeys && aacskeys /media/blurays</pre><br />
<br />
Edit ~/.config/aacs/KEYDB.cfg and add the information outputted by aacskeys using this syntax:<br />
<pre>0x<unit key file hash> = Film Title | V | 0x<volume unique key></pre><br />
<br />
===mplayer===<br />
To play blurays in mplayer you will need [https://aur.archlinux.org/packages.php?ID=40658 mplayer-bluray] installed.<br />
<br />
The basic playback command is:<br />
<pre>mplayer br:///</bluray/mount/dir></pre><br />
<br />
====Troubleshooting====<br />
=====Stuttering Video=====<br />
It is likely that you will need to enable hardware acceleration and multi core CPU support for the bluray to play smoothly.<br />
<br />
For nvidia cards, enable hardware acceleration by installing libvdpau and using the option '-vo vdpau' with mplayer. eg:<br />
<pre>mplayer -vo vdpau br:///</bluray/mount/dir></pre><br />
<br />
For multi core CPU support use the options '-lavdopts threads=N', where 'N' is the number of cores. eg:<br />
<pre>mplayer -lavdopts threads=2 br:///</bluray/mount/dir></pre><br />
<br />
=====Incorrect Audio Language=====<br />
You can scroll through the playback languages using the '#' key.<br />
<br />
=====Out of Sync Audio=====<br />
From your first mplayer output, you must find the codec used for the bluray. It will be at the end of the line "Selected video codec".<br />
<br />
For H.264 discs use the option '-vc ffh264vdpau'. eg:<br />
<pre>mplayer -vc ffh264vdpau br:///</bluray/mount/dir></pre><br />
For VC-1 discs use '-vc ffvc1vdpau'. eg:<br />
<pre>mplayer -vc ffvc1vdpau br:///</bluray/mount/dir></pre><br />
For MPEG discs use '-vc ffmpeg12vdpau'. eg:<br />
<pre>mplayer -vc ffmpeg12vdpau br:///</bluray/mount/dir></pre><br />
<br />
===vlc===<br />
Currently vlc only supports bluray playback in development versions, so you will need to install [https://aur.archlinux.org/packages.php?ID=16084 vlc-git].<br />
<br />
Start playback with: <pre>vlc bluray://</bluray/mount/dir></pre><br />
<br />
==Other Useful Software==<br />
<br />
For DVD, the [http://www.archlinux.org/packages/extra/x86_64/libdvdcss libdvdcss] package supplies the needed decryption libs. Below are some options for BluRay/HD-DVD decryption. Users can employ to backup a commercial BluRay movie under Fair Use guidelines:<br />
<br />
*[https://aur.archlinux.org/packages.php?ID=45099 aacskeys] - Opensource<br />
*[https://aur.archlinux.org/packages.php?ID=45101 dumphd] - Opensource<br />
*[https://aur.archlinux.org/packages.php?ID=33972 makemkv] - Closed source/limited free beta<br />
<br />
*[http://www.slysoft.com/en/anydvdhd.html anydvdhd] - Commercial software requiring users to run it on an Microsoft OS in a VM.</div>Stubb