Mouse pad option
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Mouse pad option
Hi fanthom, thanks for the help. I made the changes you suggested but the script didn't execute when I booted. I didn't see any error msgs when booting but I wasn't running it in QEMU which is what I do to see the booting msgs and do screen prints.
Those msgs in the previous screen print about udev timeout were unusual. I don't recall seeing them before or know why they popped up then. This is what I saw before making the changes you suggested.
Uploaded with ImageShack.us
I'm going to reboot in QEMU again to see if I see anything related to the changes. I'll let you know what shows.
Those msgs in the previous screen print about udev timeout were unusual. I don't recall seeing them before or know why they popped up then. This is what I saw before making the changes you suggested.
Uploaded with ImageShack.us
I'm going to reboot in QEMU again to see if I see anything related to the changes. I'll let you know what shows.
Ed
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Mouse pad option
!!!!! This is what I see when booting in QEMU!!
Uploaded with ImageShack.us
But not when I boot it live.
My Grub4DOS menu item(s).
Uploaded with ImageShack.us
But not when I boot it live.
My Grub4DOS menu item(s).
Code: Select all
title Porteus 2.0\n 233MB\n Porteus-v2.0-i486.iso
map --heads=0 --sectors-per-track=0 /ISOs/Porteus-v2.0-i486.iso (0xff)
map --hook
root (0xff)
kernel /boot/syslinux/vmlinuz from=/ISOs/Porteus-v2.0-i486.iso vga=791 autoexec=startx rootcopy=/mnt/sdb1/scripts changes=EXIT:/porteussave.dat
initrd /boot/syslinux/initrd.xz
title Porteus 2.0 - sans changes=\n 233MB\n Porteus-v2.0-i486.iso \n Use to check space usage of porteus.dat file.
map --heads=0 --sectors-per-track=0 /ISOs/Porteus-v2.0-i486.iso (0xff)
map --hook
root (0xff)
kernel /boot/syslinux/vmlinuz from=/ISOs/Porteus-v2.0-i486.iso vga=791 autoexec=startx rootcopy=/mnt/sdb1/scripts
initrd /boot/syslinux/initrd.xz
Ed
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Mouse pad option
i still don't get why you are calling a second script from rc.local when the job (synclient commands) can be called from within rc.local. Or perhaps after the desktop loads from within /etc/xdg/autostart. No need to pass the ball around. I also see you are loading modules from the modules folder where it says "Additional modules have been found". Why not just put your rc.local file inside one of the additional modules?
Code: Select all
mkdir -p /tmp/dump/etc/rc.d
echo "synclient PalmDetect=1" >> /tmp/dump/etc/rc.d/rc.local
dir2xzm /tmp/dump /path/to/modules/folder/startstuff.xzm
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Mouse pad option
@fanthom
There is no pause when booting the flash drive directly.
My Porteus changes.
@brokenman
I assume at some point there will be another release of Porteus. And when that happens I want to be able to carry all my tweaks and customizations to the new release with as little effort as possible. Things that exist outside the ISO I can keep and simply relink to.
Whenever I have upgraded my Window systems it has taken me weeks and months to migrate all my changes over to the new systems, I would like to minimize that effort with Porteus. But maybe Porteus is like Windows and will be just as hard to upgrade with all changes manually integrated into each ISO, especially with my limited knowledge of Linux commands.
As for modules I have no idea where they came from let alone how to create one.
PS My synclient changes need more work, the cursor is still jumping around.
There is no pause when booting the flash drive directly.
My Porteus changes.
Code: Select all
root@porteus:~# ls /mnt/sdb1/scripts/bin/
touchpad.sh*
root@porteus:~# cat /etc/rc.d/rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
sh /bin/touchpad.sh
root@porteus:~#
I assume at some point there will be another release of Porteus. And when that happens I want to be able to carry all my tweaks and customizations to the new release with as little effort as possible. Things that exist outside the ISO I can keep and simply relink to.
Whenever I have upgraded my Window systems it has taken me weeks and months to migrate all my changes over to the new systems, I would like to minimize that effort with Porteus. But maybe Porteus is like Windows and will be just as hard to upgrade with all changes manually integrated into each ISO, especially with my limited knowledge of Linux commands.
As for modules I have no idea where they came from let alone how to create one.
PS My synclient changes need more work, the cursor is still jumping around.
Code: Select all
synclient PalmDetect=1 PalmMinWidth=4
synclient RightEdge=5950 BottomEdge=5950
# https://stuffivelearned.org/doku.php?id=os:linux:general:synapticstouchtricks#digging_deeper_with_synclient
# http://guides.ianrenton.com/howto-linux-and-synaptics-touchpads-for-little-fingers/
# http://forum.porteus.org/viewtopic.php?f=81&t=1955&p=13313#p13313
# /etc/rc.d/rc.local
Ed
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Mouse pad option
@EdP
i have an impression that /dev/sdb1 does no exist in qemu session.
that's why you are getting "touchpad.sh no such file" messages which are much confusing.
/dev/sdb1 does exist when you boot on real PC and touchpad.sh gets executed properly (it just does not do the job you would expect).
btw: "autoexec=startx" is no longer necessary so please remove it.
i have an impression that /dev/sdb1 does no exist in qemu session.
that's why you are getting "touchpad.sh no such file" messages which are much confusing.
/dev/sdb1 does exist when you boot on real PC and touchpad.sh gets executed properly (it just does not do the job you would expect).
btw: "autoexec=startx" is no longer necessary so please remove it.
Please add [Solved] to your thread title if the solution was found.
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Mouse pad option
I get the same error with /mtn/sdb1/ and I can access /mnt/sdb1/ once Porteus is up under QEMU.fanthom wrote:@EdP
i have an impression that /dev/sdb1 does no exist in qemu session.
I'm expecting it to set synclient parm values and I don't see that that has happened after I boot. When I manually execute the script the values change./dev/sdb1 does exist when you boot on real PC and touchpad.sh gets executed properly (it just does not do the job you would expect).
Done. Thanks.btw: "autoexec=startx" is no longer necessary so please remove it.
BTW What does the expression ~/.config/autostart mean? I suspect the ~ refers to a common path but what about the /.?
Ed
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Mouse pad option
please boot porteus in qemu then show me output of 'lspci -knn'I get the same error with /mtn/sdb1/ and I can access /mnt/sdb1/ once Porteus is up under QEMU.
'~' means home diectory '.config' is a hidden folder the rest is normal path.What does the expression ~/.config/autostart mean?
Please add [Solved] to your thread title if the solution was found.
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Mouse pad option
When I use the rootcopy cheatcode I get this.fanthom wrote:you are booting from ISO image so please put your script into /mnt/sdb1/scripts/bin folder and boot with 'rootcopy=/mnt/sdb1/scripts' cheatcode so it will be coped directly to aufs.
your custom rc.local should contain following command:Code: Select all
sh /bin/touchpad.sh
Uploaded with ImageShack.us
When I don't use the autoexec cheatcode I get this.fanthom wrote:btw: "autoexec=startx" is no longer necessary so please remove it.
Uploaded with ImageShack.us
At this point rootcopy is out and autoexec is back in.
Please note that while Porteus boots quickly natively, in QEMU it is horrendously slow. At least an hr. If I'm awake when it finally comes up and I get terminal mode open I will edit this post and include the output below.fanthom wrote:please boot porteus in qemu then show me output of 'lspci -knn'
Code: Select all
-update-
crap! crap!! CRAP!!!
I finally got the system up, got Xterminal up, executed your command, saved the output to a txt file, copied the txt file to the USB drive and signed off of Porteus. But when I look at the files on the USB drive under Windows the lspci.txt file ISN'T THERE!!!
If anything good came out of this I did notice that the USB drive in QEMU is sda1 rather than sdb1 when booted live.
I'll try tomorrow.
Ed
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Mouse pad option
Not the format you were expecting I'm sure but at least this time you can see it.
Uploaded with ImageShack.us
And I thought this might be worth showing also.
Uploaded with ImageShack.us
So, where and what to do to run my stupid script? And I don't care if it doesn't run or is found in QEMU!!
Uploaded with ImageShack.us
And I thought this might be worth showing also.
Uploaded with ImageShack.us
So, where and what to do to run my stupid script? And I don't care if it doesn't run or is found in QEMU!!
Ed
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Mouse pad option
Modules are any files that end in .xzm and in the last post i left instructions for how to create one. Porteus is 'modular' by nature and this is one of it's greatest strengths. To upgrade you could simply drop your 'changes' module into the new upgrade in the 'modules' folder or use the extramod= cheatcode to point to it. Depending on your changes you should have no problem.As for modules I have no idea where they came from let alone how to create one.
After the list of base module in the screenshot (001-core.xzm, 002-xorg.xzm etc) i see a file in yellow called 'changes' which is being loaded. This should have the .xzm suffix. I would like to see the contents of this changes module.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Mouse pad option
@EdP
did you ever create a /mnt/sda1/scripts folder in qemu virtual session? did you ever put you script there?
if yes then you must use 'rootcopy=/mnt/sda1/scripts' chatcode instead of 'rootcopy=/mnt/sdb1/scripts' as it looks to me that /dev/sdb drive does not exist in virtual session.
if you are not sure about drive naming then 'rootcopy=/scripts' will also be ok as booting script will find it itself.
from my point of view it would be easiest if you could remaster porteus ISO and put your script inside the module (as suggested by brokenman) or in /porteus/rootcopy folder (and do not use 'rootcopy=' cheatcode then).
before you start doing anything please read following docs:
link
link2
link3
@brokenman
'changes' module appears when you are booting with 'changes=EXIT:' cheatcode as destination point must be treated as normal module (read-only) if we want to perform writes only during shutdown.
i know it may sound weird but it has to be like that.
did you ever create a /mnt/sda1/scripts folder in qemu virtual session? did you ever put you script there?
if yes then you must use 'rootcopy=/mnt/sda1/scripts' chatcode instead of 'rootcopy=/mnt/sdb1/scripts' as it looks to me that /dev/sdb drive does not exist in virtual session.
if you are not sure about drive naming then 'rootcopy=/scripts' will also be ok as booting script will find it itself.
from my point of view it would be easiest if you could remaster porteus ISO and put your script inside the module (as suggested by brokenman) or in /porteus/rootcopy folder (and do not use 'rootcopy=' cheatcode then).
before you start doing anything please read following docs:
link
link2
link3
@brokenman
'changes' module appears when you are booting with 'changes=EXIT:' cheatcode as destination point must be treated as normal module (read-only) if we want to perform writes only during shutdown.
i know it may sound weird but it has to be like that.
Please add [Solved] to your thread title if the solution was found.
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Mouse pad option
Yes I had a /scripts/bin folder on the USB drive so it was there regardless of the drive designation that Porteus assigned to it. But do note I rarely use QEMU except to try and catch booting problems. Porteus, like several other apps, are WAY TOO SLOW to use effectively run that way. As noted previously it takes over an hour to just boot Porteus and it doesn't have an online connection under QEMU.fanthom wrote:@EdP
did you ever create a /mnt/sda1/scripts folder in qemu virtual session? did you ever put you script there?
if yes then you must use 'rootcopy=/mnt/sda1/scripts' chatcode instead of 'rootcopy=/mnt/sdb1/scripts' as it looks to me that /dev/sdb drive does not exist in virtual session.
if you are not sure about drive naming then 'rootcopy=/scripts' will also be ok as booting script will find it itself.
However, your last comment tweaked my interest. It may explain the script problem not executing, I should put it in the root of the USB drive and reference it WITHOUT a path setting. /touchpad.sh rather than /mnt/sdb1/script/bin/touchpad.sc or whatever. Or would /script/bin/touchpad.sh work? I'm referring to the rc.local file's entry for it.
I'm not disagreeing with your view at this point. I assumed working with this would be a challenge for me with my limited/non-existent Linux knowledge. I wasn't planning on it being hard for Portues also.from my point of view it would be easiest if you could remaster porteus ISO and put your script inside the module (as suggested by brokenman) or in /porteus/rootcopy folder (and do not use 'rootcopy=' cheatcode then).
I have read those links. A couple of times. But most seem to be are based on an install of Porteus verses an ISO approach.
Thank you for answering brokenman's question because I was going to ask him how to find it so I could see what was in it also.@brokenman
'changes' module appears when you are booting with 'changes=EXIT:' cheatcode as destination point must be treated as normal module (read-only) if we want to perform writes only during shutdown.
i know it may sound weird but it has to be like that.
-edit-
etc/rc.d/rc.local
Code: Select all
root@porteus:~# cat /etc/rc.d/rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
sh /touchpad.sh
Code: Select all
sh /touchpad.sh no such file or directory
Code: Select all
root@porteus:~# ls /mnt/sdb1/
!QEMU_USB_booter.cmd* ISOs/ autorun.inf* ntldr*
!Rebuild.cmd* PorteusNotes.txt* beep.txt* porteussave.dat*
Autorun/ PswdsISOsWiFi.txt* boot.ini* scripts/
Boot/ QEMU/ grldr* touchpad.sh* <--------------------
CD2ISO/ Splashimages/ menu.lst*
Contig/ Temp/ ntdetect.com*
Ed
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Mouse pad option
@EdP
only linuxrc is smart enough to search for file/folder on all devices.
in case of rc.local you have to give a full path.
i'm 100% sure that this time it will work. please save following code as as /mnt/sdb1/test.sh
and launch it from rc.local:
now reboot and check if script is found during boot.
btw: save this file from linux and not Windows (formatting incompatibility).
only linuxrc is smart enough to search for file/folder on all devices.
in case of rc.local you have to give a full path.
i'm 100% sure that this time it will work. please save following code as as /mnt/sdb1/test.sh
Code: Select all
#!/bin/sh
echo -en "fanthom is master of everything\npress enter if you agree (if you do not do it then booting wont continue)"
read
Code: Select all
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
sh /mnt/sdb1/test.sh
btw: save this file from linux and not Windows (formatting incompatibility).
Please add [Solved] to your thread title if the solution was found.
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Mouse pad option
Are you serious!!! It worked!!
So why doesn't it find mine? My script works when I manually execute it.
touchpad.sh
Works as far as changing values, not that it is stopping the stupid cursor jumping.
So why doesn't it find mine? My script works when I manually execute it.
touchpad.sh
Code: Select all
synclient PalmDetect=1 PalmMinWidth=4
synclient RightEdge=5950 BottomEdge=5950
synclient FingerLow=44 FingerHigh=45
synclient MinSpeed=.2
# https://stuffivelearned.org/doku.php?id=os:linux:general:synapticstouchtricks#digging_deeper_with_synclient
# http://guides.ianrenton.com/howto-linux-and-synaptics-touchpads-for-little-fingers/
# http://www.yeap.de/blog2.0/archives/84-Configuring-the-Synaptics-Touchpad.html
# http://forum.porteus.org/viewtopic.php?f=81&t=1955&p=13313#p13313
# http://ubuntuforums.org/showthread.php?t=1855689
# /etc/rc.d/rc.local
Ed
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Mouse pad option
Ok, so I tweak my script a bit.
touchpad.sh
And when I RIGHT click on it, in /mnt/sdb1/, and click on Execute, I get the following screen:
Uploaded with ImageShack.us
HOW can this be?????
touchpad.sh
Code: Select all
#!/bin/sh
# /etc/rc.d/rc.local
synclient PalmDetect=1 PalmMinWidth=4
synclient RightEdge=5950 BottomEdge=5950
synclient FingerLow=44 FingerHigh=45
synclient MinSpeed=.2
# https://stuffivelearned.org/doku.php?id=os:linux:general:synapticstouchtricks#digging_deeper_with_synclient
# http://guides.ianrenton.com/howto-linux-and-synaptics-touchpads-for-little-fingers/
# http://www.yeap.de/blog2.0/archives/84-Configuring-the-Synaptics-Touchpad.html
# http://forum.porteus.org/viewtopic.php?f=81&t=1955&p=13313#p13313
# http://ubuntuforums.org/showthread.php?t=1855689
Uploaded with ImageShack.us
HOW can this be?????
Ed