Tiny Core Linux
Tiny Core Extensions => TCE Corepure64 => Topic started by: MikeLockmoore on June 04, 2023, 11:39:44 PM
-
Hello! It's been a very a very long time, but I'm the guy that started the "Topside" version of FLWM about 12 years ago, and posted some other FLTK apps like Fluff. Very recently I decided to try to get back into using TC and maybe even updating my apps and hopefully doing more.
I now have a ThinkPad T440p that's about ten years old but has a nice i7 CPU with lots of RAM. I started by installing 32-bit TC 14 on it, but I wanted to run TinyCorePure64, so set it up as a dual boot with 64 and 32 bit versions and have 64-bit the default. I confirmed with uname I'm running the 64-bit kernel. There's a variety of issues, but a deal-breaker right now is sound. I have tried to follow the guide posted by @Rich, but I don't get too far before having some issues.
I've installed the recommended ALSA extensions.
In the terminal, when I enter 'alsactl init' I get:
Found hardware: "HDA-Intel" "Realtek ALC3232" "HDA{NUMBERS}" "0X17AA" "0X220e"
Hardware is initialized using a generic method
OK, this seems encouraging. But then I run the suggested speaker-test command, I get
ALSA lib confmisc.c:767(parse_card) cannot find card '0'
{several more lines of error message}
Also I checked my Services from the Control Panel and don't see sound / ALSA listed as a service... there are four things and only dhcp is enabled (green).
Any suggestions? Also, another re-newb question... can I copy/paste text in the default FLTK terminal? Ctrl+C or Ctrl+Shift+C is not working for copy. I'm also having some trackpad issues so I can't middle-click on this. Maybe if I plug in an external mouse?
Anyway, thanks to anyone who tries to help me with this! Nice to see TC still plugging away!
--
Mike "Lockmoore"
-
Hi MikeLockmoore
... can I copy/paste text in the default FLTK terminal? ...
Yes you can. I've never tried it with a touch pad. In fact, I disable the touch pad and only use a mouse:
Highlight the text to copy by holding down the left mouse button and dragging the mouse.
Place the mouse cursor where you want to paste the text and left click.
Center click to paste. If you have a 2 button mouse, click left and right buttons at the same time.
-
Hi MikeLockmoore
... can I copy/paste text in the default FLTK terminal? ...
Yes you can. ... Center click to paste. If you have a 2 button mouse, click left and right buttons at the same time.
Thanks! I'll try with an external mouse.
Any thoughts on my ALSA sound config issue? I need to head off to sleep very soon, but I'll check back tomorrow.
-
Hi MikeLockmoore
I just did a quick install of alsa on a HP G42 laptop.
I installed alsa-config and alsa in that order.
I then ran:
tc@box:~$ alsactl init
Found hardware: "HDA-Intel" "Realtek ALC270" "HDA:10ec0270,103c1444,00100100" "0x103c" "0x1444"
Hardware is initialized using a generic method
tc@box:~$ speaker-test [-Ddefault:1] -c2 -t wav -l1
speaker-test 1.2.1
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
0 - Front Left
1 - Front Right
Time per period = 2.678126
tc@box:~$
and heard the phrases Front Left and Front Right from their respective speakers.
-
I think the default key combo to paste in a terminal was shift-insert. Trackpads without a middle button can paste with left+right, or if using Xorg and the synaptics driver, you can configure a three-finger tap to be a middle click.
edit: have you installed the thinkpad-acpi extension? It's unlikely it affects sound, but being thinkpad-specific would be good anyway.
edit 2: you may be having the issue where HDMI output is marked as the default sound card, possibly. See "aplay -l" and "aplay -L".
-
Hi MikeLockmoore
I now use link method to disable hdmi sound to have analog if that interests you
http://forum.tinycorelinux.net/index.php/topic,26153.msg168085.html#msg168085
-
HEllo forum,
Right.
i believe Linux uses .........Pulse Audio...... or Alsa....... or OSS.
to create sound.
Yes, devices could have multiple sound parts.....INPUTS .......output(s) such as hdmi which carry's a sound signal.......
The Linux usually does some sort of scan of Device Sound capability
.......via ALSACONF and an APP.
Linux then lists what devices it sees and can support for you to get sound.
You choose a device and then configure THAT item to get sound from it.
THere are some small 50 cent USB soundcards which give sound to any device really......they are sold on the world wide web (mail order)
There are some APPS (abstract) for handhelds..............the app will grab a Devices SOUND....... and beam it over network to your handheld device sound OUT socket or method......
"Soundwire" (is such a FRE aPP on android)
...........intel drivers do many embedded sound devices.
THx
C
-
edit 2: you may be having the issue where HDMI output is marked as the default sound card, possibly. See "aplay -l" and "aplay -L".
Here is my aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Here is aplay -L
default:CARD=PCH
HDA Intel PCH, ALC3232 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC3232 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
I now use link method to disable hdmi sound to have analog if that interests you
http://forum.tinycorelinux.net/index.php/topic,26153.msg168085.html#msg168085
Here is modinfo snd_hda_intel | grep snd:
filename: /lib/modules/6.1.2-tinycore64/kernel.tclocal/sound/pci/hda/snd-hda-intel.ko.gz
parm: dmic_detect:Allow DSP driver selection (bypass this driver) (0=off, 1=on) (default=1); deprecated, use snd-intel-dspcfg.dsp_driver option instead
depends: snd-hda-core,snd-hda-codec,snd,snd-intel-dspcfg,snd-pcm
Curaga, aus9: Thanks for your suggestions. Do you see anything in the specifics above that I should try? I don't see anything about HDMI, so I don't know if that's my issue, but maybe I'm not looking at it right. Thanks again!
-
Hi
lets start with your codec since my first link failed to give you card0 or index=0
https://www.kernel.org/doc/html/v4.14/sound/hd-audio/models.html
ALC22x/23x/25x/269/27x/28x/29x (and vendor-specific ALC3xxx models)
SNIP
tpt440
Lenovo Thinkpad T440s setup
SNIp
Yes there is no 440p so finger crossed
right so delete all modprobes in bootlocal....full reboot to be sure.
post full output for (ignore capital -L at this stage)
aplay -l
if raw (no config) shows hdmi is card0 then try this bootlocal
modprobe -r snd_hda_intel
modprobe snd_hda_intel options model=tpt440
2) The following info may not be accurate for your specific model
for your ids 0X17AA 0X220e
https://linux-hardware.org/?probe=154ba4022c&log=hwinfo
Vendor: pci 0x8086 "Intel Corporation"
Device: pci 0x8c20 "8 Series/C220 Series Chipset High Definition Audio Controller"
SubVendor: pci 0x17aa "Lenovo"
SubDevice: pci 0x220e "ThinkPad T440p"
we have a match for ids
modinfo snd_hda_intel | grep 8C20
alias: pci:v00008086d00008C20sv*sd*bc*sc*i*
3) I do not know what effect that model setup is going to do, so I am leaving out disable card=0 assuming its hdmi
post your new aplay -l if it differs from raw one please. Then you can decide to add enable=0 or not
and test speaker-test of course
-
I forgot to mention, I was focussing on attempting to disable hdmi to give you a result for speaker-test.
but what you are focussing on is to get sound ....and I accept if my method half succeeds, lets not worry about index=0 and instead,
if you like....install pulsaudio and pavucontrol....read their info files.
pavucontrol will allow you to swap your preferred output device. Maxmise the GUI so you can see all the TABS
-
delete all modprobes in bootlocal....full reboot to be sure.
post full output for (ignore capital -L at this stage)
aplay -l
I don't have any modprobe calls in bootlocal:
tc@box:/opt$ cat bootlocal.sh
#!/bin/sh
# put other system startup commands here
/opt/eth0.sh &
/usr/local/bin/wifi-connect &
post full output for (ignore capital -L at this stage)
Code: [Select]
aplay -l
OK... my aplay -l is
**** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Which is what it was before, if I'm not mistaken.
I manually tried (in terminal, not bootlocal.sh):
modprobe -r snd_hda_intel
modprobe snd_hda_intel options model=tpt440
But I was not able to get any sound from speaker-test and got the same kind of errors I had before.
The really weird thing is there seems to be no card0...
I dug around a bit in my sys/ filesystem. i have these:
/sys/module/snd/ /sys/module/snd_hda_intel/
/sys/module/snd_ctl_led/ /sys/module/snd_hwdep/
/sys/module/snd_hda_codec/ /sys/module/snd_intel_dspcfg/
/sys/module/snd_hda_codec_generic/ /sys/module/snd_pcm/
/sys/module/snd_hda_codec_realtek/ /sys/module/snd_timer/
/sys/module/snd_hda_core/
I tried to look around, but I don't see anything that is claiming to be card0. I do see a rat's nest of symlinks that recurse in a crazy way. ???
Not getting much further with ALSA, I'm afraid! Thanks for the links... maybe I can get some more clues from them.
I forgot to mention, I was focussing on attempting to disable hdmi to give you a result for speaker-test.
but what you are focussing on is to get sound ....and I accept if my method half succeeds, lets not worry about index=0 and instead,
if you like....install pulsaudio and pavucontrol....read their info files.
pavucontrol will allow you to swap your preferred output device. Maxmise the GUI so you can see all the TABS
I suppose I can try PulseAudio tomorrow or the next day!
--
Mike
-
Hi
no card0? the hardware data submitter had such so weird!
I have a new link for you to study and curaga hinted at solution too
have you installed the thinkpad-acpi extension? It's unlikely it affects sound, but being thinkpad-specific would be good anyway.
For the moment I think its safe to have this in your boot list if curaga agrees?
to be rude....it NOW must be installed to have relevance below solution to try
2) Do this all by commands---we can sort it out later scripts/boot list and other configs later
so remove all sound packages (except thinkpad) and media players from your boot list please
Read link
https://github.com/xbelanch/Arch4T440P/blob/main/arch_4_t440p_installation.md
Notice that they are loading alsa-utils alsa-plugins alsa-lib pavucontrol
so we will do the same but in a different order due to dependencies
tce-load -i alsa-config alsa-plugins pavucontrol
When you look at our deps...alsa-config contains alsa-utils
alsa-plugins has deps including alsa & libasound plus others
pavucontrol has dep of pulseaudio
Next we become root for these comands
sudo su
modprobe -r snd_hda_intel
modprobe snd_hda_intel options enable=0,1 index=0
modprobe -r snd
modprobe snd options slots=snd_hda_intel, thinkpad_acpi
modprobe -r thinkpad_acpi
modprobe thinkpad_acpi thinkpad_acpi index=1
Warning I have never done a parameter for snd kernel module so not sure if it works without a removal and modprobe
next run
aplay -l
as hinted by curaga, its possible if you had that thinkpad module loaded, it was stealing card0 slot
do we have card0?
-
Hi
no card0? the hardware data submitter had such so weird!
I have a new link for you to study and curaga hinted at solution too
...
tce-load -i alsa-config alsa-plugins pavucontrol
...
Next we become root for these comands
sudo su
modprobe -r snd_hda_intel
modprobe snd_hda_intel options enable=0,1 index=0
modprobe -r snd
modprobe snd options slots=snd_hda_intel, thinkpad_acpi
modprobe -r thinkpad_acpi
modprobe thinkpad_acpi thinkpad_acpi index=1
...
aplay -l
...
do we have card0?
YES! There were a few issues in the modprobe commands (see below), but at the end of it, I have a card0 and I could run the 'speaker-test [-Ddefault:1] -c2 -t wav -l1' test and hear sound! Thanks!
Now, I need to figure out what was necessary in these commands to make it work. Pulling in PulseAudio or maybe just some of the modprobe commands are needed to sort out the device drivers, or perhaps almost all of it. I'll study the link you included to understand things a bit better.
Log of the commands and responses:
tc@box:~$ tce-load -i alsa-config alsa-plugins pavucontrol
libpci.tcz: OK
pciutils.tcz: OK
alsa-config.tcz: OK
alsa-plugins.tcz not found!
tc@box:~$ tce-load -i alsa-config alsa-plugins pavucontrol
alsa-config is already installed!
ncursesw.tcz: OK
alsa.tcz: OK
alsa-plugins.tcz: OK
libsigc++.tcz: OK
glibmm.tcz: OK
cairomm.tcz: OK
pangomm.tcz: OK
atkmm.tcz: OK
gtkmm.tcz: OK
libavahi.tcz: OK
libltdl.tcz: OK
libogg.tcz: OK
speex.tcz: OK
speexdsp.tcz: OK
libvorbis.tcz: OK
flac.tcz: OK
libsndfile.tcz: OK
libpulseaudio.tcz: OK
pulseaudio.tcz: OK
libcanberra.tcz: OK
pavucontrol.tcz: OK
tc@box:~$ sudo su
root@box:/home/tc# modprobe -r snd_hda_intel
root@box:/home/tc# modprobe snd_hda_intel options enable=0,1 index=0
root@box:/home/tc# modprobe -r snd
modprobe: can't unload module 'snd': Resource temporarily unavailable
root@box:/home/tc# modprobe snd options slots=snd_hda_intel, thinkpad_acpi
root@box:/home/tc# modprobe -r thinkpad_acpi
root@box:/home/tc# modprobe thinkpad_acpi thinkpad_acpi index=1
modprobe: can't load module thinkpad_acpi (kernel.tclocal/drivers/platform/x86/thinkpad_acpi.ko.gz): unknown symbol in module, or unknown parameter
root@box:/home/tc# modprobe -r thinkpad_acpi
root@box:/home/tc# modprobe thinkpad_acpi thinkpad_acpi index=1
modprobe: can't load module thinkpad_acpi (kernel.tclocal/drivers/platform/x86/thinkpad_acpi.ko.gz): unknown symbol in module, or unknown parameter
root@box:/home/tc# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
root@box:/home/tc# speaker-test [-Ddefault:1] -c2 -t wav -l1
speaker-test 1.2.1
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
0 - Front Left
1 - Front Right
Time per period = 2.685371
-
Hi MikeLockmoore
... root@box:/home/tc# modprobe thinkpad_acpi thinkpad_acpi index=1
modprobe: can't load module thinkpad_acpi (kernel.tclocal/drivers/platform/x86/thinkpad_acpi.ko.gz): unknown symbol in module, or unknown parameter
...
I suspect that may be a typo. I think it should probably be:
root@box:/home/tc# modprobe thinkpad_acpi index=1
-
Hi MikeLockmoore
...
I suspect that may be a typo. I think it should probably be:
root@box:/home/tc# modprobe thinkpad_acpi index=1
Ahh, that makes more sense, especially now that I've skimmed the linked blog for an Arch install on a T440p. The typo must not be fatal, but perhaps setting that correctly will help with other machine-specific things, so I'll update and set it correctly in my bootlocal.sh script.
Before this last change, I put the other modprobe commands in my bootlocal.sh script and re-installed alsa-config.tcz, alsa-plugins.tcz, pulseaudio.tcz, and pavucontrol.tcz and set those to be loaded onboot. I'm able to reboot now and have sound working! Speaker-test works and I can play Youtube vids in FireFox and hear their audio. The PulseAudio VU Control app allowed me to change the volume.
So, overall, I think my issue is solved! Thanks @Rich, @aus9, @curaga, and @vinceASPECT to jumping in to help me!
Can I edit the title of the thread to show SOLVED? I don't see a way to edit that (so far).
-
Hi MikeLockmoore
... Can I edit the title of the thread to show SOLVED? I don't see a way to edit that (so far).
No, you can't. After 30 minutes you can no longer edit your posts.
-
Hi MikeLockmoore
I am still not happy....lets change again.
modprobe: can't unload module 'snd': Resource temporarily unavailable
it can be messy to remove modules that may have dependencies etc etc while live. snd is supposed to be the final module.
No matter. I noticed you have not download alsa-plugins, since you have sound we can ignore it
Change 1. I would like you to now have in your boot list- order not important due to change2
alsa-config.tcz
pavucontrol.tcz
thinkpad-acpi-6.1.2-tinycore64.tcz
change2 I would like you to have a blacklist boot code, not sure which your boot loader you are using but for grub you would edit the linux line to add blacklist=snd_hda_intel,thinkpad_acpi
Better still create 2 menus one with blacklist and one without as I am not sure we can work it all out in one post.
Test-condition
full reboot and
lsmod | grep snd
lsmod | grep thinkpad
should give no hits. We can not continue unless this Test-condition is fully met. Because the main dep of snd is snd_hda-intel, I agree its not the only one, but we do not need to blacklist snd
change3 now we attempt to load modules, without any remove modules commands as they not there.
sudo su
modprobe snd_hda_intel options enable=0,1 index=0
modprobe thinkpad_acpi options index=1
I do not think we can do anything about snd at this stage. Notice I added options to thinkpad
aplay -l
Do we still have card0 and your sound works ok after pavucontrol stuff?
-
leaping assume your sound is good with the changes. You can then add - to your bootlocal.sh
modprobe snd_hda_intel options enable=0,1 index=0
modprobe thinkpad_acpi options index=1
full reboot and it should work, fingers crossed
-
lsmod | grep snd
lsmod | grep thinkpad
should give no hits.
Confirmed.
change3 now we attempt to load modules, without any remove modules commands as they not there.
sudo su
modprobe snd_hda_intel options enable=0,1 index=0
modprobe thinkpad_acpi options index=1
The first modprobe worked without error
The second modprobe has an error like I saw before:
root@box:/home/tc# modprobe thinkpad_acpi options index=1
modprobe: can't load module thinkpad_acpi (kernel.tclocal/drivers/platform/x86/thinkpad_acpi.ko.gz): unknown symbol in module, or unknown parameter
aplay -l provides:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Another issue I have is I don't see a GRUB menu. I created an extlinux.conf file with a few options and an 8 second timeout, but it immediately goes to my default. Any ideas on this? The last entry is a carry over from the 32-bit install I started with.
extlinux.conf:
DEFAULT TC64
PROMPT 0
TIMEOUT=8
ONTIMEOUT TC64
LABEL TC64
MENU LABEL TinyCorePure64
TEXT HELP
Boot TinyCorePure64 with Embedded X/GUI extensions
ENDTEXT
KERNEL /tce64/boot/vmlinuz64
INITRD /tce64/boot/corepure64.gz
#APPEND tce=sda1/tce64 loglevel=3 cde vga=791
APPEND tce=sda1/tce64 loglevel=3 cde vga=795 blacklist=snd_hda_intel,thinkpad_acpi
LABEL TC64orig
MENU LABEL TinyCorePure64 (no blacklist)
TEXT HELP
Boot TinyCorePure64 with Embedded X/GUI extensions
ENDTEXT
KERNEL /tce64/boot/vmlinuz64
INITRD /tce64/boot/corepure64.gz
APPEND tce=sda1/tce64 loglevel=3 cde vga=795
LABEL core
MENU LABEL core (no GUI)
KERNEL /tce/boot/vmlinuz
INITRD /tce/boot/core.gz
APPEND quiet tce=sda1 waitusb=5:UUID="9bf23678-b856-45dd-a61b-0872ddc035fb" tce=UUID="9bf23678-b856-45dd-a61b-0872ddc035fb"
Many thanks again.
-
Hi MikeLockmoore
... root@box:/home/tc# modprobe thinkpad_acpi options index=1
modprobe: can't load module thinkpad_acpi (kernel.tclocal/drivers/platform/x86/thinkpad_acpi.ko.gz): unknown symbol in module, or unknown parameter
...
First let's try to figure out if it's an unknown symbol in module, or unknown parameter.
Do this:
sudo modprobe thinkpad options index=1
dmesg | tail
and see if the dmesg output provides more details.
... I created an extlinux.conf file with a few options and an 8 second timeout, but it immediately goes to my default. Any ideas on this? ...
Try setting PROMPT to 1. I think TIMEOUT is in tenths of a second.
See:
https://wiki.syslinux.org/wiki/index.php?title=SYSLINUX#PROMPT_flag_val
and:
https://wiki.syslinux.org/wiki/index.php?title=SYSLINUX#TIMEOUT_timeout
-
Hi MikeLockmoore
unknown symbol in module can mean a missing dependency.
To see if thinkpad_acpi has any dependencies:
modinfo thinkpad_acpi | grep depends
If it does, check the loaded modules to see if any of those dependencies missing:
lsmod
-
Hi MikeLockmoore
...
First let's try to figure out if it's an unknown symbol in module, or unknown parameter.
Do this:
sudo modprobe thinkpad options index=1
dmesg | tail
and see if the dmesg output provides more details.
...
To see if thinkpad_acpi has any dependencies:
modinfo thinkpad_acpi | grep depends
If it does, check the loaded modules to see if any of those dependencies missing:
lsmod
OK.... I pasted the console log together here:
tc@box:~$ sudo modprobe thinkpad_acpi options index=1
modprobe: can't load module thinkpad_acpi (kernel.tclocal/drivers/platform/x86/thinkpad_acpi.ko.gz): unknown symbol in module, or unknown parameter
tc@box:~$ lsmod | grep thinkpad
tc@box:~$ dmesg | tail
...
wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by f8:bb:bf:24:44:28
thinkpad_acpi: Unknown symbol drm_privacy_screen_unregister (err -2)
thinkpad_acpi: Unknown symbol drm_privacy_screen_call_notifier_chain (err -2)
thinkpad_acpi: Unknown symbol drm_privacy_screen_register (err -2)
tc@box:~$ modinfo thinkpad_acpi | grep depends
depends: platform_profile,drm,battery,snd,backlight,video
tc@box:~$ lsmod | grep platform_profile
platform_profile 12288 0
tc@box:~$ lsmod | grep drm
tc@box:~$ lsmod | grep battery
battery 16384 0
tc@box:~$ lsmod | grep snd
snd 49152 0
soundcore 12288 1 snd
tc@box:~$ lsmod | grep backlight
backlight 12288 1 video
tc@box:~$ lsmod | grep video
video 45056 0
backlight 12288 1 video
wmi 16384 3 think_lmi,wmi_bmof,video
Seems like drm is the culprit!
I'll try the GRUB menu suggestions too! Thanks, Rich.
-
Hi MikeLockmoore
... Seems like drm is the culprit! ...
Use the Apps utility to Download Only graphics-KERNEL.tcz.
Then add it to the beginning of onboot.lst.
Reboot and see if the error is gone.
-
...
Use the Apps utility to Download Only graphics-KERNEL.tcz.
Then add it to the beginning of onboot.lst.
Reboot and see if the error is gone.
Yes, I assume you mean graphics-6.1.2-tinycore64.tcz. I downloaded and put it first in my onboot.lst. I am now able to modprobe thinkpad_acpi without error. I put back all of the earlier modprobe commands in my bootlocal.sh and I am able to get sound automatically after reboot! Thanks again, Rich and aus9!
A side effect of graphics-6.1.2-tinycore64.tcz is now my desktop boots into native resolution of 1920x1080 which provides a nice square aspect ratio for my text and graphics, but everything is fairly small in the native FLTK apps and terminal window. Some apps like Firefox have font scaling features, but I'd really like to get bigger text in my terminal for my less-than-young eyes. Is there a way to control it, or do I need a different terminal app if I want to keep the native resolution and run with larger fonts?
Another option I suppose is running at lower resolution. The current boot codes with "vga=795" I think are getting ignored:
Unknown kernel command line parameters "cde BOOT_IMAGE=/tce64/boot/vmlinuz64 tce=sda1/tce64 vga=795 blacklist=snd_hda_intel,thinkpad_acpi", will be passed to user space.
I don't have an Xvesa option enabled in my control panel app (it is grayed out). Maybe I need to run the Xorg system like I did in the past on other machines to have more control?
Another question I have is how to disable the trackpad or reduce its sensitivity... it is very easy to accidentally reposition the mouse pointer when I'm typing by brushing part of my hands on the trackpad. Maybe better if I start a new thread for this?
-
Hi MikeLockmoore
... I don't have an Xvesa option enabled in my control panel app (it is grayed out). ...
Xvesa is only an option for x86 (32 bit).
... Another question I have is how to disable the trackpad or reduce its sensitivity... it is very easy to accidentally reposition the mouse pointer when I'm typing by brushing part of my hands on the trackpad. ...
That's one of my pet peeves too. I use the attached script to disable
my touchpad. I keep the script in ~/.local/bin. I have a file called touchpad
in ~/.X.d/ which contains the line:
Touchpad.sh Off
That command gets executed after X starts.
You just need to setup 2 variables, TouchpadName and PropertyName.
Read the comments in the script to find out how to obtain their values.
-
like to get bigger text in my terminal for my less-than-young eyes
me too. If you like small terms like aterm....some window managers allow keyboard shortcuts like jwm, icemwm that will allow to bind a key so
whatever you choice for keyboard combos it launches aterm with a larger font. There is another post on how to set that in your ~/.Xdefaults like this one
http://forum.tinycorelinux.net/index.php/topic,23056.msg151316.html#msg151316
in jwm I use
<Key mask="A" key="2">exec:aterm -fn 12x24</Key>
where A=Alt(ernate) key
EDIT if anyone knows what the windows logo key is called in jwm please let me know please
in icewm I use
key "Super+2" aterm -fn 12x24
where Super=mod4=Windows logo key called other names as well
-
If you like to try a bigger term like lxterminal running on gtk3, once you have confirmed it loads ok, remove aterm from your boot list.Reboot.
Using Apps and downloading a new TCE will start xterm, and thanks to Bela Markus lxterminal will open and show your preferred fonts and size.
To those people like me, who should wear goggles more often, size does matter :)
-
... I have a file called touchpad in ~/.X.d/ which contains the line:
Touchpad.sh Off
That command gets executed after X starts.
You just need to setup 2 variables, TouchpadName and PropertyName.
Read the comments in the script to find out how to obtain their values.
Rich: The Touchpad.sh script uses the command xinput, which I don't seem to have and don't find in the repo of extensions. Is it part of some non-obvious extension? Is it 32-bit and not 64? Thanks if you can help me sort it out.
-
in icewm I use
key "Super+2" aterm -fn 12x24
where Super=mod4=Windows logo key called other names as well
I'm only using FLWM right now... but that -fn option for aterm is very promising... HOWEVER, when I try to edit the .wbar config file and .wmx/Applications/Terminal script to have "aterm -fn 10x20"... it is getting overwritten when I reboot... even though I took .wmx out of the .xfiletool.lst file and even putting .wbar and .wmx into filetool.lst (though I don't think that should be necessary, if the files were not clobbered on every boot).
So it seems FLWM is re-writting .wmx stuff and .wbar stuff each boot. Is there a way to avoid this, or change the template so "aterm" becomes "aterm -fn 10x20" each boot?
If you like to try a bigger term like lxterminal running on gtk3 ...
I considered using the lxterminal or gnome-terminal, but each of these has a dependency list that seems as long as my arm. :o I'm trying to keep the system fairly light, but, that said, I am using Firefox, so maybe most of the dependencies for one or the other is already mostly included.
Thanks, as always!
-
Hi MikeLockmoore
xinput is part of Xorg-7.7-bin.tcz. It is available in both 32 and 64 bit.
-
Hi Rich and MikeLockmoore
I am not interested in using FLWM others should be able to help there but why not create a ~/.local/bin/file contents
#!/bin/sh
aterm -fn 12x24
make it executable.
The file name is your choice, lets pretend you are not using sway so z is available as an executable name, eg on my RPi
sudo find / -name z
/tmp/tcloop/ncurses-terminfo/usr/local/share/terminfo/z
/usr/local/share/terminfo/z
Naturally it depends on what TCEs you load for the filename you choice. Did you guess I like short names?
If home is backed up, after testing your .local/bin do a reboot
2) I am on a RPi at the moment and download unpack of flwm.tcz gives me an idea but Rich may be upset I think I know more than him and I agree to I do not...
Hi Rich I am looking at flwm_initmenu which reads in part
USER="$(cat /etc/sysconfig/tcuser)"
SYSMENU=/home/"$USER"/.wmx
[ -d "$SYSMENU" ] && rm -rf "$SYSMENU"
mkdir -p "$SYSMENU"
TARGET="$SYSMENU"/SystemTools && mkdir "$TARGET"
sync
for D in `ls /usr/local/share/applications/tinycore-*`; do
writeFLWMitem "$D"
done
For me, [ -d "$SYSMENU" ] is a reversed if-then so it looking for a missing dir called /home/"$USER"/.wmx
but for most examples I have seen the next command should be ||
but it does not make sense for && delete dir unless you always wanted to have a clean dir?
[ -d "$SYSMENU" ] || mkdir -p "$SYSMENU"
I have history of opening big gob so feel free to laugh at my lack of skills ok
-
Hi MikeLockmoore
... I took .wmx out of the .xfiletool.lst file ...
Don't do that.
... and even putting .wbar and .wmx into filetool.lst ...
Don't do that.
If you place the attached file in ~/.X.d it should fix the ~/.wmx/Applications/Terminal
and /usr/local/tce.icons files when X starts.
Make sure aterm.tcz is onboot.
[EDIT] Fixed attachment. Rich
-
Hi aus9
... but it does not make sense for && delete dir unless you always wanted to have a clean dir? ...
That's exactly its purpose. Delete the directory if it exists prior to
creating the directory.
-
Hi MikeLockmoore
xinput is part of Xorg-7.7-bin.tcz. It is available in both 32 and 64 bit.
OK, will check into it. Thanks!
-
Hi MikeLockmoore
... I took .wmx out of the .xfiletool.lst file ...
Don't do that.
... and even putting .wbar and .wmx into filetool.lst ...
Don't do that.
If you place the attached file in ~/.X.d it should fix the ~/.wmx/Applications/Terminal
and /usr/local/tce.icons files when X starts.
Make sure aterm.tcz is onboot.
I tweaked the file to use 10x20 font, placed it in ~/.X.d, and chmod'ed it to 755. I also reversed the changes to my xfiletool.lst and filetool.lst files. After reboot, the terminal from the FLWM floating window is launching aterm with my specified font, so success on the .wmx side. However, I did not get the same result from the icon in wbar. I tried to run this command in a terminal (not as su):
sed -i 's/^c: exec aterm$/c: exec aterm -fn 10x20/' /usr/local/tce.icons
And it fails:
"sed: can't create temp file '/usr/local/tce.iconsNaEVuL': Permission denied"
I'm going to try this version of FixATerm (added sudo, took out $ from the substitution pattern... not really needed in this case, is it?):
[ -f ~/.wmx/Applications/Terminal ] && echo -e "#!/bin/sh\nexec aterm -fn 10x20"
sudo sed -i 's/^c: exec aterm/c: exec aterm -fn 10x20/' /usr/local/tce.icons
wbar.sh
Will edit or post results after reboot...
EDIT: It worked!
-
I think it was mentioned earlier, but aterm can be configured via .Xdefaults too (which is in your home dir, avoiding edits to files in system dirs). But no need to change if what you have works.
-
Hi MikeLockmoore
... and chmod'ed it to 755. ...
There's no need to make it executable. The .xsession file reads
each line and executes it.
... sed -i 's/^c: exec aterm$/c: exec aterm -fn 10x20/' /usr/local/tce.icons
And it fails:
"sed: can't create temp file '/usr/local/tce.iconsNaEVuL': Permission denied" ...
I ran into the same error while I was testing the commands in a terminal.
Realized sed needed sudo and then forgot to include it when creating
the attachment. Sorry about that.
The attachment in reply #31 has been corrected.
-
I think it was mentioned earlier, but aterm can be configured via .Xdefaults too (which is in your home dir, avoiding edits to files in system dirs). But no need to change if what you have works.
Oh, that is much cleaner! Maybe going to switch over to that. Thanks for the tip!
Do you or anyone know if the native FLTK apps can be easily scaled? If not, I may want to rebuild my to support a larger font.
-
The scaling is only in the dev version of FLTK.
-
Hi MikeLockmoore
xinput is part of Xorg-7.7-bin.tcz. It is available in both 32 and 64 bit.
Well, what do you know... Xorg starts up and autoconfigures the touchpad with sane defaults that work very well. I don't get accidental pointer bumps from my hands brushing the synaptics touchpad, and even two-finger scroll-wheel effect is working by default. Very nice! I should have tried Xorg sooner. ::) On the other hand, I was trying to keep my TC64 install closer to minimal, but I must admit I like some creature comforts.
I do appreciate the help re-learning the ropes here, Rich.