We are moving! New user registrations to this forum is now closed. Posting here will be disabled eventually. Please go to the new community for your Snakeoil OS support and other discussions. (June 03)

New community website: https://community.snakeoil-os.net (June 03)

Join us in the new community by Creating a new account. (June 04)


[SOLVED] [split] Missing HPET clocksource option
#1
FYI, "hpet" is gone in Clocksource since FW 1.2.4.
 Go to solution Reply

#2
(23-May-2022, 12:44 AM)hkphantomgtr Wrote: FYI, "hpet" is gone in Clocksource since FW 1.2.4.
Do you mean you have HPET enabled in the BIOS, but can't find that setting in the kernel config any more?

I havn't touched that part of the code, but will check and confirm later today (or in the week)
Snakeoil Operating System - Music, your way!
Reply

#3
(24-May-2022, 07:51 AM)agent_kith Wrote:
(23-May-2022, 12:44 AM)hkphantomgtr Wrote: FYI, "hpet" is gone in Clocksource since FW 1.2.4.
Do you mean you have HPET enabled in the BIOS, but can't find that setting in the kernel config any more?

I havn't touched that part of the code, but will check and confirm later today (or in the week)

Yes, now I have my NUC.  In the CMOS there is an option to turn on/off "High Precision Event Timer".  Your help will be highly appreciated, again.  Big Grin
Reply

#4
(24-May-2022, 12:14 PM)hkphantomgtr Wrote: Yes, now I have my NUC.  In the CMOS there is an option to turn on/off "High Precision Event Timer".  Your help will be highly appreciated, again.  Big Grin
Can you run the following command, and tell me what it says? Also generate a diagnostics file and send it to the specified email so I can check the logs

Code:
cat /sys/devices/system/clocksource/clocksource0/available_clocksource
Snakeoil Operating System - Music, your way!
Reply

#5
(30-May-2022, 03:36 PM)agent_kith Wrote:
(24-May-2022, 12:14 PM)hkphantomgtr Wrote: Yes, now I have my NUC.  In the CMOS there is an option to turn on/off "High Precision Event Timer".  Your help will be highly appreciated, again.  Big Grin
Can you run the following command, and tell me what it says? Also generate a diagnostics file and send it to the specified email so I can check the logs
 
Code:
cat /sys/devices/system/clocksource/clocksource0/available_clocksource

tsc acpi_pm

And I've emailed the diagnostic file to the specific email a/c.  Please take your time.  Shy
Reply

#6
(30-May-2022, 10:47 PM)hkphantomgtr Wrote: tsc acpi_pm
So it looks like you only have the above two as your clock source. I believe TSC is pretty good as well, so that's worth a try

(30-May-2022, 10:47 PM)hkphantomgtr Wrote: And I've emailed the diagnostic file to the specific email a/c.  Please take your time.  Shy
See this in the system logs:
Code:
hpet: HPET dysfunctional in PC10. Force disabled.

Look in your ACPI or power saving and see if you can disable PC10 state, play around with CPU states and see if you can disable just that, failing that you might need to disable power saving entirely Doing so should get HPET back after a reboot. Let me know how it goes.
Snakeoil Operating System - Music, your way!
Reply

#7
(31-May-2022, 06:24 PM)agent_kith Wrote:
(30-May-2022, 10:47 PM)hkphantomgtr Wrote: tsc acpi_pm
So it looks like you only have the above two as your clock source. I believe TSC is pretty good as well, so that's worth a try
(30-May-2022, 10:47 PM)hkphantomgtr Wrote: And I've emailed the diagnostic file to the specific email a/c.  Please take your time.  Shy
See this in the system logs:
 
Code:
hpet: HPET dysfunctional in PC10. Force disabled.

Look in your ACPI or power saving and see if you can disable PC10 state, play around with CPU states and see if you can disable just that, failing that you might need to disable power saving entirely Doing so should get HPET back after a reboot. Let me know how it goes.

Thanks, AK!  You're right.  After disabling the power control setting (disabling "Dynamic Power Technology" , or mainly "OS ACPI C2 Report"), my HPET is back, at the expense of lower temperature, and the low latency value.  I really like the HPET sound as the sound is more vivid, with better focus, much better transition, more "on-beat", and denser texture.   In short, more holographic.Big Grin


Attached Files Thumbnail(s)
               
Reply

#8
(31-May-2022, 11:12 PM)hkphantomgtr Wrote:
(31-May-2022, 06:24 PM)agent_kith Wrote:
(30-May-2022, 10:47 PM)hkphantomgtr Wrote: tsc acpi_pm
So it looks like you only have the above two as your clock source. I believe TSC is pretty good as well, so that's worth a try
(30-May-2022, 10:47 PM)hkphantomgtr Wrote: And I've emailed the diagnostic file to the specific email a/c.  Please take your time.  Shy
See this in the system logs:
 
Code:
hpet: HPET dysfunctional in PC10. Force disabled.

Look in your ACPI or power saving and see if you can disable PC10 state, play around with CPU states and see if you can disable just that, failing that you might need to disable power saving entirely Doing so should get HPET back after a reboot. Let me know how it goes.

Thanks, AK!  You're right.  After disabling the power control setting (disabling "Dynamic Power Technology" , or mainly "OS ACPI C2 Report"), my HPET is back, at the expense of lower temperature, and the low latency value.  I really like the HPET sound as the sound is more vivid, with better focus, much better transition, more "on-beat", and denser texture.   In short, more holographic.Big Grin

To further my findings, with the same CMOS setting, after changing to "TSC" clocksource, the latency becomes as good as before.  huh.... so, with my new NUC, seems the CMOS setting doesn't affect the latency, but the choice of "clocksource".

And last night, in a second thought, it's quite strange to me that, even in the default CMOS setting, including HPET is enabled, the Snakeoil OS can't use HPET, or the system/hardware can't use HPET with the CMOS default power management setting...... so where is the problem?
Reply

#9
(01-Jun-2022, 11:46 PM)hkphantomgtr Wrote: To further my findings, with the same CMOS setting, after changing to "TSC" clocksource, the latency becomes as good as before.  huh.... so, with my new NUC, seems the CMOS setting doesn't affect the latency, but the choice of "clocksource".
On some motherboards, I honestly can't discern any notable difference between HPET and TSC. IIRC need to disable hyper-threading.

I believe one is the older technology, and less "accurate" under certain conditions, and the other is meant to be a replacement. If memory serves, HPET is meant to be a replacement for TSC (could be the other way round though Big Grin).

(01-Jun-2022, 11:46 PM)hkphantomgtr Wrote: And last night, in a second thought, it's quite strange to me that, even in the default CMOS setting, including HPET is enabled, the Snakeoil OS can't use HPET, or the system/hardware can't use HPET with the CMOS default power management setting...... so where is the problem?
HPET is disabled in the kernel. There's apparently some problems with HPET when in C10 mode (power saving mode), so the kernel disables the HPET timer (and falls back to TSC IIRC). So even though HPET is enabled in the system BIOS, the OS will refuse to use it.

If you're using custom kernels, power saving is disabled by default so HPET is always working. Using stock linux kernels, full suite of power saving is enabled hence you may get that missing HPET.
Snakeoil Operating System - Music, your way!
Reply

#10
(02-Jun-2022, 08:16 AM)agent_kith Wrote:
(01-Jun-2022, 11:46 PM)hkphantomgtr Wrote: To further my findings, with the same CMOS setting, after changing to "TSC" clocksource, the latency becomes as good as before.  huh.... so, with my new NUC, seems the CMOS setting doesn't affect the latency, but the choice of "clocksource".
On some motherboards, I honestly can't discern any notable difference between HPET and TSC. IIRC need to disable hyper-threading.

I believe one is the older technology, and less "accurate" under certain conditions, and the other is meant to be a replacement. If memory serves, HPET is meant to be a replacement for TSC (could be the other way round though Big Grin).
(01-Jun-2022, 11:46 PM)hkphantomgtr Wrote: And last night, in a second thought, it's quite strange to me that, even in the default CMOS setting, including HPET is enabled, the Snakeoil OS can't use HPET, or the system/hardware can't use HPET with the CMOS default power management setting...... so where is the problem?
HPET is disabled in the kernel. There's apparently some problems with HPET when in C10 mode (power saving mode), so the kernel disables the HPET timer (and falls back to TSC IIRC). So even though HPET is enabled in the system BIOS, the OS will refuse to use it.

If you're using custom kernels, power saving is disabled by default so HPET is always working. Using stock linux kernels, full suite of power saving is enabled hence you may get that missing HPET.


O... I c.  Thanks for your explanation.  Now I understand more.
BTW, I've already disabled hyper-threading.  Have a nice day!
[-] The following 1 user Likes hkphantomgtr's post:
  • agent_kith
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED[split] MediaCenter33 not starting ing Snakeoil 1.4.3 (High End U3) kmwgr 4 468 06-Apr-2025, 08:16 PM
Last Post: kmwgr
  [split] How to re-set activation details hkphantomgtr 2 273 04-Apr-2025, 03:32 PM
Last Post: hkphantomgtr
  [split] Problem starting API server 1.4.1 (Missing qsqlite3 lib) clark8888 17 1,276 26-Mar-2025, 09:33 AM
Last Post: clark8888
  Glibc 2.36 missing jetski 5 577 04-Mar-2025, 03:23 AM
Last Post: jetski
  [SOLVEDMusic Players missing justme 2 459 31-Jan-2025, 01:07 PM
Last Post: justme



Users browsing this thread:
2 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
Android Firefox issues with forum
Last Post: agent_kith
Yesterday 04:45 PM
» Replies: 21
» Views: 1225
[split] Possible To Load Snakeoil OS in ...
Last Post: Snoopy8
09-Jun-2025 06:43 AM
» Replies: 14
» Views: 943
Snakeoil 1.4.3 (High End U3)
Last Post: hkphantomgtr
05-Jun-2025 03:58 PM
» Replies: 67
» Views: 6269
Snakeoil with Ubuntu Desktop ?
Last Post: Snoopy8
02-Jun-2025 09:38 AM
» Replies: 8
» Views: 574
Add IR remote control using Flirc USB in...
Last Post: Snoopy8
31-May-2025 03:50 PM
» Replies: 5
» Views: 416
Work In Progress: 1.4.4
Last Post: hkphantomgtr
29-May-2025 11:44 PM
» Replies: 44
» Views: 3401
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
27-May-2025 02:16 PM
» Replies: 42
» Views: 3700
Snakeoil 1.4.0 (High End)
Last Post: aabman
25-May-2025 11:35 AM
» Replies: 93
» Views: 11122
new install issues
Last Post: carlodim
23-May-2025 09:56 AM
» Replies: 42
» Views: 2779
Is this project still alive?
Last Post: agent_kith
20-May-2025 03:11 PM
» Replies: 10
» Views: 735

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2025. Theme © Melroy van den Berg.