忘記密碼
 立即註冊
樓主: BYOB

打造終極 HiEnd HTPC - Linux 哇塞!

[複製鏈接]

16

主題

1772

回帖

0

積分

新手上路

四星級會員

舊站積分
6295
舊站發表文章數
1683
發表於 2011-5-6 00:56:26 | 顯示全部樓層
小弟再說說一些小心得..

1. 因為BYOB兄您的音效卡是PCI介面, 可以玩玩setpci  (PCI-e沒作用)
2. 所有跟省電有關的東西全關掉, 尤其是cpufreq之類的...

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2011-5-6 01:14:48 | 顯示全部樓層
原發表者是 bchsieh
[B]小弟再說說一些小心得..

1. 因為BYOB兄您的音效卡是PCI介面, 可以玩玩setpci  (PCI-e沒作用)
2. 所有跟省電有關的東西全關掉, 尤其是cpufreq之類的... [/B]


setpci 有小玩了一下, 沒明顯感覺, PCI-e 沒作用到是很好的資訊.

PCI Latency Timer

#lspci -v

04:07.0 Multimedia audio controller: Xilinx Corporation RME Digi96/8 Pad (rev 04)
        Flags: slow devsel, IRQ 21
        Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
        Kernel driver in use: RME Digi96
        Kernel modules: snd-rme96

# setpci -v -s 04:07.0 latency_timer=ff

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2011-5-6 14:35:41 | 顯示全部樓層
擔心網友安裝過程遇到問題 我重新再跑一次安裝步驟, 修改幾個小地方

特別是進階軟體安裝時有些檔案無法從ftp.tku.edu.tw鏡像站取得, 不知道是臨時故障還是怎樣, 建議一開始就選這個 http.tku.edu.tw

其實我本來都是選http.tku.edu.tw, 哪知道換成它的兄弟就不行了, 而且已經完成基礎安裝了. . .

如果遇到這種情形,  還有一招可解 : ( 編輯下面這個檔案)

#nano /etc/pcaman.d/mirrorlist

將預設鏡像站ftp.tku.edu.tw改為http.tku.edu.tw

ctrl+o (存檔)
ctrl+x (離開nano)

再試一次軟體安裝看看!

另外jack2最好在播放軟體前安裝
今天先安裝 audacity時他會順便安裝jack
造成jack2 無法安裝必須先卸載 jack  (# pacman -R jack)
jack 與 jack2 是不同的版本, 至於說差異何在請先自行 Google 一下囉!
http://jackaudio.org/

另瀏覽器建議先裝 firefox 比較簡單 !

其他步驟應該都沒問題了, 如果還不行應該是我的表達能力有問題

改天再考慮免費到府安裝服務好了 (範圍霧峰省議會方圓十里內 ) []

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2011-5-6 18:35:55 | 顯示全部樓層
Hi,

there is a little app which can disable the unnecessary process which call rcconf (if i didn't misspell it ) the most no. 1 process need to be disabled is the apic and acpi which is no good to sound and also for the mulit-thread /core optimization disable it will have noticeable sound quality improvement - less noise in the background which make us listen more.

also usb and network adapter are poison to sound quality in linux .....whether it's usb 1.1 or 2.0 still no good if it's enabled in bios. huge difference in my system when i disabled them both in the bios.

HPET is another important thing to play with however it may make your system become unstable ....but it is very vital to good sound quality. whether it should be enabled or disabled you should try it yourself coz some said after enabled the latency actually is a bit higher but the sound is much better, at least it is true in my system.

cheers!

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2011-5-6 20:01:23 | 顯示全部樓層
原發表者是 solo16
[B]Hi,

there is a little app which can disable the unnecessary process which call rcconf (if i didn't misspell it ) the most no. 1 process need to be disabled is the
which is no good to sound and also for the mulit-thread /core optimization disable it will have noticeable sound quality improvement - less noise in the background which make us listen more.

also usb and network adapter are poison to sound quality in linux .....whether it's usb 1.1 or 2.0 still no good if it's enabled in bios. huge difference in my system when i disabled them both in the bios.

HPET is another important thing to play with however it may make your system become unstable ....but it is very vital to good sound quality. whether it should be enabled or disabled you should try it yourself coz some said after enabled the latency actually is a bit higher but the sound is much better, at least it is true in my system.

cheers! [/B]


Hi~

http://stenlyho.blogspot.com/2009/02/acpiapic.html

apic and acpi are diffrent things, you mean kill both two ?
but I can not find any word of 'apic' or 'acpi' in my rc.conf . []

It true the HPET is good for sound .
[]

Today I tried audacity. It comes a litter better sound than audacious. Is there any thrick for preferences setting ?

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2011-5-6 20:10:36 | 顯示全部樓層
in my experences.

when I set  acpi=off at boot time

# (4) Arch Linux rt
title  Arch Linux rt
root   (hd0,0)
kernel /vmlinuz26rt root=/dev/disk/by-uuid/678a79c2-1d2f-4b05-b4eb-c7da33aad71f ro lapic acpi=off
initrd /kernel26rt.img

The latency become very huge. And follows a WARNING: High resolution timers not available

root@byob ~]# cyclictest -p 80 -t5 -n (2.6.33-rt,2 core)
WARNING: High resolution timers not available
policy: fifo: loadavg: 0.06 0.03 0.01 2/207 1423         

T: 0 ( 1419) P:80 I:1000 C:  26597 Min:     12 Act:  170 Avg:  531 Max:    1051
T: 1 ( 1420) P:79 I:1500 C:  17731 Min:    125 Act:  412 Avg:  634 Max:    1160
T: 2 ( 1421) P:78 I:2000 C:  13298 Min:     18 Act:  206 Avg:  605 Max:    1171
T: 3 ( 1422) P:77 I:2500 C:  10639 Min:     35 Act:  439 Avg:  606 Max:    1163
T: 4 ( 1423) P:76 I:3000 C:   8866 Min:     33 Act:  428 Avg:  593 Max:    1161

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2011-5-6 20:31:32 | 顯示全部樓層
RT PREEMPT HOWTO

NOTE: Since rt patch 2.6.18-rt6 you will probably have to activate ACPI option to activate high resolution timer. Since the TSC timer on PC platforms, as used in the previous versions, are now marked as unsuitable for hrt mode due to many lacks of functionalities and reliabilties, you will need i.E. pm_timer as provided by ACPI to use as clock source. To activate the pm_timer, you can just activate the ACPI_SUPPORT in menuconfig and deactivate all other sub modules like "fan", "processor" or "button". If you have an old pc, which lacks ACPI support, you migh have problems using the high resolution timer.

這段話我研究好久, 英文程度不足,
請教高手第一句話開頭的 Since 的語意是  "從...開始" 的用法嗎?
第一句話的意義也就是說: 從rt patch     2.6.18-rt6 開始可能必須啟動ACPI以激活high resolution timer...
這樣對嗎?
[]

14

主題

849

回帖

0

積分

新手上路

三星級會員

舊站積分
2319
舊站發表文章數
826
 樓主| 發表於 2011-5-6 21:51:00 | 顯示全部樓層
找到這篇不錯的資料 :
linux的TSC計算原理

時鐘源設備(clock-source device)

系統中可以提供一定精度的計時設備都可以作為時鐘源設備。如 TSC,HPET,ACPI PM-Timer,PIT 等。但是不同的時鐘源提供的時鐘精度是不一樣的。像 TSC,HPET 等時鐘源既支持高精度模式(high-resolution mode)也支持低精度模式(low-resolution mode),而 PIT 只能支持低精度模式。此外,時鐘源的計時都是單調遞增的(monotonically),如果時鐘源的計時出現翻轉(即返回到 0 值),很容易造成計時錯誤, 內核的一個 patch(commit id: ff69f2)就是處理這類問題的一個很好示例。時鐘源作為系統時鐘的提供者,在可靠並且可用的前提下精度越高越好。在 Linux 中不同的時鐘源有不同的 rating,具有更高 rating 的時鐘源會優先被系統使用。

表 1. 時鐘源中 rating 的定義

1 ~ 99
非常差的時鐘源,只能作為最後的選擇。如 jiffies

100 ~ 199         
基本可以使用但並非理想的時鐘源。如 PIT
       
200 ~ 299         
正確可用的時鐘源。如 ACPI PM Timer,HPET

300 ~ 399
快速並且精確的時鐘源。如 TSC         

400 ~ 499                            
理想時鐘源。如 kvm_clock,xen_clock

看來tsc是優於ACPI PM Timer,HPET
但前一篇提到的內容有說 tsc不適用於rt kernel

[root@BYOB /]# uname -a  
Linux BYOB 2.6.33-rt #1 SMP PREEMPT
目前系統跑得是rt kernel

[root@BYOB ~]# cat /sys/devices/system/clocksource/clocksource0/current_clocksource
tsc
但目前使用中的時鐘為tsc (不是說tsc不適用於rt kernel嗎)

[root@BYOB ~]# cat /sys/devices/system/clocksource/clocksource0/available_clocksource
tsc hpet acpi_pm
目前可用的時鐘有tsc, hpet及 acpi_pm

找到ubuntu 改hpet的方法
$ sudo gedit /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="... clocksource=hpet"
$ sudo update-grub2

Arch . . .待進一步研究  (來去核心內部看看)

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2011-5-6 22:36:41 | 顯示全部樓層
Hi,

yes i mean to kill both!!! []  but you need to try n error i did not mean it is a definite will make sound good for killing acpi and apic ....in my case it did sound better..... []

so far i read the dmesg no error occur for disabling the acpi and apic.

for hpet i don't think it's necessary to enable the acpi, as i checked (forgot the command to check that) even disabled the acpi the hpet IS working properly without any error but one weird thing happened the computer can't be shut down like normal -  click the icon and select shut down - i need to press the power button on the CAS, but i already set it to power off when the power button pressed.

for audacity the only thing you need to set is the playback from ram... and the bit rate and sampling rate as well....

btw in order to playback high resolution file you need to change the clock rate in alsamixer as well as in the audacity otherwise it will hang. []

also blacklist the hdmi, you should be surprised!!! []

Cheers!

0

主題

165

回帖

0

積分

新手上路

二星級會員

舊站積分
171
舊站發表文章數
165
發表於 2011-5-6 22:46:48 | 顯示全部樓層
Hi,

also for yours' reference, for gigabyte MB user try to press Ctrl + F1 in bios you will enable hidden setting which can finer tune /tweak your CAS!!! Very important!!! This enable you to set the sideport memory (if you have one) ratio to DMA, the onboard graphic card still need to access the RAM [] !!!! ....also the speed of sideport memory....other feature like finer tweaking for ram and the spectrum....etc....depends on your mobo.!!! []

Cheers!
您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|MyAV視聽商情網 test

GMT+8, 2026-11-19 15:09 , Processed in 0.088660 second(s), 41 queries .

Powered by MyAV!

快速回覆 返回頂部 返回列表