Install pulseaudio-bluetooth.
Pair device via GUI.
run hciconfig up
Connect device via GUI as Audio sink.
Use Pulse Audio Control GUI.
Sunday, April 3, 2016
Saturday, January 23, 2016
Archlinux on HP 6510b
Install packages: rfkill, hdparm
rfkill to enable wifi
Custom systemd unit for hdparm via systemd After=sleep.target:
/etc/systemd/system/myhdparm.service
[Unit]
Description=set hdparm for sda
After=default.target sleep.target
[Service]
type=oneshot
ExecStart=/etc/systemd/system/sethdparm.sh
[Install]
WantedBy=default.target sleep.target
/etc/systemd/system/sethdparm.sh
#!/bin/bash
sleep 2
hdparm -B 253 /dev/sda
rfkill to enable wifi
Custom systemd unit for hdparm via systemd After=sleep.target:
/etc/systemd/system/myhdparm.service
[Unit]
Description=set hdparm for sda
After=default.target sleep.target
[Service]
type=oneshot
ExecStart=/etc/systemd/system/sethdparm.sh
[Install]
WantedBy=default.target sleep.target
/etc/systemd/system/sethdparm.sh
#!/bin/bash
sleep 2
hdparm -B 253 /dev/sda
Saturday, December 12, 2015
Blender frameserver and ffmpeg
rm ffmpeg2*log*
date
echo starting blender
blender -b edr.blend -F FRAMESERVER -s 1 -e 300 --render-anim &
sleep 2
date
echo starting ffmpeg pass1
source "frameserver_pass1.sh"
sync
date
echo starting blender2
blender -b edr.blend -F FRAMESERVER -s 1 -e 300 --render-anim &
sleep 2
date
echo starting ffmpeg pass2
source "frameserver_pass2.sh"
sync
date
echo finished, going to sleep...
# systemctl suspend
-=-=-=-=-
BLENDER=http://localhost:8080
OUTPUT='-f null /dev/null'
CODEC_OPTS="-pix_fmt yuv420p -profile:v high -level 4.0 -vcodec libx264 -preset slow -b:v 12500k "
# -preset slow -profile:v high -level 4.0"
eval `wget ${BLENDER}/info.txt -O - 2>/dev/null |
while read key val ; do
echo R_$key=$val
done`
i=$R_start
{
while [ $i -le $R_end ] ; do
wget ${BLENDER}/images/ppm/$i.ppm -O - 2>/dev/null
i=$(($i+1))
done
} | ffmpeg -vcodec ppm -f image2pipe -r $R_rate -i pipe:0 $CODEC_OPTS -pass 1 -threads 6 $OUTPUT
wget ${BLENDER}/close.txt -O - 2>/dev/null >/dev/null
date
echo starting blender
blender -b edr.blend -F FRAMESERVER -s 1 -e 300 --render-anim &
sleep 2
date
echo starting ffmpeg pass1
source "frameserver_pass1.sh"
sync
date
echo starting blender2
blender -b edr.blend -F FRAMESERVER -s 1 -e 300 --render-anim &
sleep 2
date
echo starting ffmpeg pass2
source "frameserver_pass2.sh"
sync
date
echo finished, going to sleep...
# systemctl suspend
-=-=-=-=-
BLENDER=http://localhost:8080
OUTPUT='-f null /dev/null'
CODEC_OPTS="-pix_fmt yuv420p -profile:v high -level 4.0 -vcodec libx264 -preset slow -b:v 12500k "
# -preset slow -profile:v high -level 4.0"
eval `wget ${BLENDER}/info.txt -O - 2>/dev/null |
while read key val ; do
echo R_$key=$val
done`
i=$R_start
{
while [ $i -le $R_end ] ; do
wget ${BLENDER}/images/ppm/$i.ppm -O - 2>/dev/null
i=$(($i+1))
done
} | ffmpeg -vcodec ppm -f image2pipe -r $R_rate -i pipe:0 $CODEC_OPTS -pass 1 -threads 6 $OUTPUT
wget ${BLENDER}/close.txt -O - 2>/dev/null >/dev/null
Wednesday, September 9, 2015
Sunday, September 6, 2015
Overclocking FX-6300
M5A97 EVO R2.0 MB + Kingston 1.65v 1600mhz 2x4G + AMD FX-6300
Overclocked to 4500MHz
Ai Tweaker Settings:
Ai Overclock Tuner D.O.C.P.
DRAM O.C. Profile Profile #0
CPU ratio 22.5
Turbo core DISABLED
CPU Bus Freq. 200 (default)
PCIE Freq. 100 (default)
Memory Freq DDR3-1600 (default)
CPU/NB Freq: 2600MHz
HT Link Speed: 2400MHz
CPU Spread Spectrum: auto
PCIe Spread Spectrum: auto
EPU: Disabled
CPU Offset Voltage: 1.320V +0.075000
DRAM Voltage: 1.65
-=-=-=-=-=
After running stability tests to keep it in 60C reduced overclocking to:
CPU Ratio = 19.5
CPU Offset Voltage: 1.248V +0.012500
And finally 4200MHz, 21.0 ratio, CPU/NB Auto (2000), HT Auto (2000), +0.012500V (1.248V)
Overclocked to 4500MHz
Ai Tweaker Settings:
Ai Overclock Tuner D.O.C.P.
DRAM O.C. Profile Profile #0
CPU ratio 22.5
Turbo core DISABLED
CPU Bus Freq. 200 (default)
PCIE Freq. 100 (default)
Memory Freq DDR3-1600 (default)
CPU/NB Freq: 2600MHz
HT Link Speed: 2400MHz
CPU Spread Spectrum: auto
PCIe Spread Spectrum: auto
EPU: Disabled
CPU Offset Voltage: 1.320V +0.075000
DRAM Voltage: 1.65
-=-=-=-=-=
After running stability tests to keep it in 60C reduced overclocking to:
CPU Ratio = 19.5
CPU Offset Voltage: 1.248V +0.012500
And finally 4200MHz, 21.0 ratio, CPU/NB Auto (2000), HT Auto (2000), +0.012500V (1.248V)
Wednesday, July 15, 2015
Friday, June 12, 2015
hdparm fix for ubuntu 15.04
https://www.linux.org.ru/forum/general/8726915
> cat /etc/systemd/system/fix-hdparm@.service
[Unit]
Description=Fix some hdparm settings after suspend/restore
After=dev-%i.device suspend.target hibernate.target sysinit.target hybrid-sleep.target
Requires=dev-%i.device
[Service]
Type=oneshot
ExecStart=/sbin/hdparm -B 254 /dev/%i
[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target
WantedBy=sysinit.target
# systemctl enable fix-hdparm@sda
ln -s '/etc/systemd/system/fix-hdparm@.service' '/etc/systemd/system/suspend.target.wants/fix-hdparm@sda.service'
ln -s '/etc/systemd/system/fix-hdparm@.service' '/etc/systemd/system/hibernate.target.wants/fix-hdparm@sda.service'
ln -s '/etc/systemd/system/fix-hdparm@.service' '/etc/systemd/system/hybrid-sleep.target.wants/fix-hdparm@sda.service'
ln -s '/etc/systemd/system/fix-hdparm@.service' '/etc/systemd/system/sysinit.target.wants/fix-hdparm@sda.service'
vasily_pupkin ★★★★★ ()
Subscribe to:
Posts (Atom)