WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] Sound on ThinkPad T440p  (Read 5993 times)

aus9

  • Guest
Re: [Solved] Sound on ThinkPad T440p
« Reply #30 on: June 11, 2023, 07:06:41 PM »
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
Quote
#!/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
Code: [Select]
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
Quote
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?

Quote
[ -d "$SYSMENU" ] || mkdir -p "$SYSMENU"

I have history of opening big gob so feel free to laugh at my lack of skills ok

« Last Edit: June 11, 2023, 07:21:21 PM by aus9 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11256
Re: [Solved] Sound on ThinkPad T440p
« Reply #31 on: June 11, 2023, 07:52:13 PM »
Hi MikeLockmoore
... I took .wmx out of the .xfiletool.lst file ...
Don't do that.

Quote
... 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
« Last Edit: June 12, 2023, 08:43:51 AM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11256
Re: [Solved] Sound on ThinkPad T440p
« Reply #32 on: June 11, 2023, 09:05:56 PM »
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.

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 525
  • Good software needn't be big!
Re: [Solved] Sound on ThinkPad T440p
« Reply #33 on: June 12, 2023, 05:18:49 AM »
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!

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 525
  • Good software needn't be big!
Re: [Solved] Sound on ThinkPad T440p
« Reply #34 on: June 12, 2023, 05:58:58 AM »
Hi MikeLockmoore
... I took .wmx out of the .xfiletool.lst file ...
Don't do that.

Quote
... 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):
Code: [Select]
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?):
Code: [Select]
[ -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!
« Last Edit: June 12, 2023, 06:02:18 AM by MikeLockmoore »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10969
Re: [Solved] Sound on ThinkPad T440p
« Reply #35 on: June 12, 2023, 08:48:54 AM »
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.
The only barriers that can stop you are the ones you create yourself.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11256
Re: [Solved] Sound on ThinkPad T440p
« Reply #36 on: June 12, 2023, 08:55:53 AM »
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.

Quote
...
Code: [Select]
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.

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 525
  • Good software needn't be big!
Re: [Solved] Sound on ThinkPad T440p
« Reply #37 on: June 12, 2023, 09:23:22 AM »
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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10969
Re: [Solved] Sound on ThinkPad T440p
« Reply #38 on: June 12, 2023, 10:54:20 PM »
The scaling is only in the dev version of FLTK.
The only barriers that can stop you are the ones you create yourself.

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 525
  • Good software needn't be big!
Re: [Solved] Sound on ThinkPad T440p
« Reply #39 on: June 13, 2023, 08:05:05 PM »
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.