LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 03-19-2024, 07:59 AM   #46
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled

Another question.
Every time I boot into it, I'm flung back in time to 01-01-1970, because it's got no hardware clock. I run ntpdate clock.akamai.com, as suggested in the installation instructions to correct it.
Would putting that in /etc/rc.d/rc.local be OK?
EDIT:
No, it didn't work. So how can I fix this?

Last edited by brianL; 03-19-2024 at 08:11 AM.
 
Old 03-19-2024, 06:35 PM   #47
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
on my rpi4, rc.local

Quote:
# 20180810 https://askubuntu.com/questions/2548...date-using-ntp
( /etc/rc.d/rc.ntpd stop
until /bin/ping -nq -c3 8.8.8.8; do
/usr/bin/echo "waiting for network..."
done
/usr/sbin/ntpd -gq
/etc/rc.d/rc.ntpd start ) &
 
1 members found this post helpful.
Old 03-19-2024, 08:35 PM   #48
netcrawl
Member
 
Registered: Jan 2004
Location: British Columbia
Distribution: Slackware64-current, aarch64
Posts: 220

Rep: Reputation: 141Reputation: 141
Or maybe a "sleep 10" or 15, or whatever works before the ntpdate command in rc.local. Works for me on an Rpi4 and 5.
 
1 members found this post helpful.
Old 03-20-2024, 08:28 AM   #49
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
Thanks, both of you.
I've decided running ntpdate uk.pool.ntp.org after every boot isn't too much trouble.
 
1 members found this post helpful.
Old 03-20-2024, 05:50 PM   #50
netcrawl
Member
 
Registered: Jan 2004
Location: British Columbia
Distribution: Slackware64-current, aarch64
Posts: 220

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by brianL View Post
I've decided running ntpdate uk.pool.ntp.org after every boot isn't too much trouble.
Slacker...
 
Old 03-20-2024, 06:05 PM   #51
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by netcrawl View Post
Slacker...
True. At one time I had in my signature here: "A slacker by nature, a Slacker by choice."

Last edited by brianL; 03-20-2024 at 06:08 PM.
 
Old 03-21-2024, 02:56 AM   #52
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,120

Rep: Reputation: Disabled
Do kde and xfce work for you? Mine works fine as a command-line system, but I cannot get either kde or xfce to work properly. My Pi400 shares a 4K monitor with my desktop machine, so I have to use scaling in both kde and xfce to make things readable (I also need to use the big font on the terminal too, as recommended!). However, as soon as I change anything - be it scaling, wallpaper, anything at all, it all becomes very unstable. Kde crashes as soon as you try to open anything - even System Settings - and on xfce all the panels vanish. I think the panels are still there, they are just underneath the background, where you can't see them!

I can't even get the Pi-fork kernel (which fixed these issues until the 6.6 version came along) to boot at all.

What are your experiences with kde and xfce? Is your monitor 1920x1080? I'm wondering if its something to do with the monitor size. Its certainly related to the graphics environment, as both kde and xfce work fine when I use the SARPI kernel.

Cheers,

--
Pete
 
Old 03-21-2024, 06:34 AM   #53
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
Yes. I started with KDE, but it's a bit too "heavy" for the Pi, so I run XFCE now. As I mentioned before, I'm using a 10.1" monitor with the Pi, and only had size problems during installation. Once installed, everything was OK. The resolution of this little monitor is 1024x600.
 
Old 03-21-2024, 06:41 AM   #54
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
The "official" RPi OS depends on fake-hwclock for time-keeping.
Seems to depend on s*****d?!

Last edited by brianL; 03-21-2024 at 06:56 AM.
 
Old 03-21-2024, 10:03 AM   #55
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
I need someone who knows more than me (everybody? ) to look at what's in that fake-hwclock package (mostly shell scripts & s*****d unit files) and tell me if anything can be used or adapted to be used on Slackware ARM.
 
Old 03-21-2024, 11:43 AM   #56
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,120

Rep: Reputation: Disabled
Not sure why you are having trouble with the clock setting. All I've ever done is add a server into /etc/ntp.conf and its picked it up pretty quickly. In days of yore, I used to add a sequence of lines like so:
Code:
# NTP server (list one or more) to synchronize with:

server 0.uk.pool.ntp.org iburst
server 1.uk.pool.ntp.org iburst
server 2.uk.pool.ntp.org iburst
server 3.uk.pool.ntp.org iburst
But the advice these days is to use this instead:
Code:
NTP server (list one or more) to synchronize with:
pool pool.ntp.org
tos maxclock 8
If you are using NetworkManager and WiFi for network connections instead of ethernet, make sure to check the box making the wifi connection accessible by all users (has the effect of storing the network password un-encrypted, which is why some people don't like doing this). However, if you don't make it accessible to all, root can't access it during boot and set the clock!

Once you've done this, the clock should set fine on each reboot without need for invoking any "home-made" scripts.

Regarding KDE and XFCE, I've never found any issues running KDE on the Pi400, until we moved to the 6.6 kernels. Admittedly they were a bit clunky unless you used the Pi-fork kernel, but using that (or SARPI) had it running quite nicely. But it all went screwy with 6.6! Its not 6.6 per se, as the SARPI 6.6 kernels work just fine.

I'll have to try mine on a lower-res monitor and see what happens. It will be a bit of a pain, as its on a sliding tray under my workstation desk, and I'll have to move it to another room to try a 1920x1080 monitor. The wiring under (and behind!) my desk is a right rat's nest...!

--
Pete
 
Old 03-21-2024, 12:30 PM   #57
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 369

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by brianL View Post
running ntpdate uk.pool.ntp.org after every boot isn't too much trouble
You might want to know NTP no longer requires you to set the time before starting the daemon. It offers a startup option -g which is the "allow the first adjustment to be big" option. The option lets ntpd know not to panic at startup when the time is way off. This option was added as part of the move to retire ntpdate. For more information, see https://support.ntp.org/Dev/DeprecatingNtpdate.

NTP 4.2.8p17 is listed as part of the slackwareaarch64-current distribution, so that distribution has -g support. But I did not see the file /etc/rc.d/rc.ntpd. So I suppose you had to roll your own boot script for it. In Slackware64 15.0, rc.ntpd does not bother with ntpdate. It just does:
/usr/sbin/ntpd -g -u ntp:ntp
Also, ntpdate is useful as an attempt to get the clock roughly updated before starting service that are time-sensitive. But now there is an NTP command ntp-wait that you can optionally run before starting a time-sensitive process. It delays the boot sequence until ntpd reports the clock has been set.
 
Old 03-21-2024, 03:32 PM   #58
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
I've done all that was suggested, but I'm still back in 1970.
 
Old 03-21-2024, 03:34 PM   #59
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 369

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by brianL View Post
I'm still back in 1970
Do you have console output -- what is ntpd saying during multiuser startup?
 
Old 03-21-2024, 03:49 PM   #60
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
I've shutdown the RPi 400 for the night, now I'm ARMless and on my x86_64.
 
  


Reply

Tags
aarch64, hardware, raspberry pi, slackware, support



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Raspberry Pi 4 bcm2711 / Raspberry Pi 3 bcm2837 (aarch64) sndwvs slarm64 145 03-16-2024 05:05 AM
LXer: Raspberry Pi OS Is Now Powered by Linux Kernel 5.10 LTS, Improves Support for Raspberry Pi 400 LXer Syndicated Linux News 0 03-27-2021 11:04 AM
LXer: openSUSE Tumbleweed ARM Adds Support for Raspberry Pi 400 and Raspberry Pi 4 CM LXer Syndicated Linux News 0 01-13-2021 07:12 PM
[VPS] 4 load page = 100 MB RAM loaded? do i need 100x 400 mb ram for next 400 page? vaporizel Linux - Server 1 03-14-2011 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 07:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration