Tiny Core Linux

General TC => General TC Talk => Topic started by: Matesax on March 31, 2013, 03:34:57 AM

Title: Tuning TCL
Post by: Matesax on March 31, 2013, 03:34:57 AM
Hi,
firstly - how can I have more (s)tty screens? No - I not thinking multiplexer - for example Ubuntu - it have six (s)tty screens by default... And secondly - how can i suspend TCL into RAM and HDD? I tried to use pm-utils and suspend utils - it failed... Pm-utils worked properly, but waking up failed - I saw only black screen after this action. Thirdly - how can I modify read only file system? I want remove
unnecessary kmaps, customize JWM and so one... I tried remount with rw attribution, but it did not change ro mode... And last - how can I set properly Czech keyboard? Firstly - in X not work shift modifier. Secondly - diacritic not working. ì¹èø¾ýáíéúù
Thank you.

EDIT - And last  ;D - why gpm not display mouse?
Title: Re: Tuning TCL
Post by: Rich on March 31, 2013, 09:30:16 AM
Hi Matesax
Quote
Thirdly - how can I modify read only file system? I want remove unnecessary kmaps, customize JWM and so one... I tried remount with rw attribution, but it did not change ro mode.
You need to run  unsquashfs  on the extension, make your changes, and run  mksquashfs.
JWM is probably best customized by changing its config files and including them as part of your backup.
Title: Re: Tuning TCL
Post by: Matesax on March 31, 2013, 09:51:30 AM
Yes - I already customized the JWM. I found configuration files in mounted rw filesystem... TCL is really quite complicated.  :D
Title: Re: Tuning TCL
Post by: bmarkus on March 31, 2013, 10:00:14 AM
Hi,
firstly - how can I have more (s)tty screens? No - I not thinking multiplexer - for example Ubuntu - it have six (s)tty screens by default...

Use multivt boot option.
Title: Re: Tuning TCL
Post by: Rich on March 31, 2013, 10:01:05 AM
Hi Matesax
There are some nice system diagrams in the Wiki that should help you to understand how Tinycore works:
http://wiki.tinycorelinux.net/wiki:tiny_core_file_architecture_diagrams
Title: Re: Tuning TCL
Post by: tinypoodle on March 31, 2013, 10:25:28 AM
Hi,
firstly - how can I have more (s)tty screens? No - I not thinking multiplexer - for example Ubuntu - it have six (s)tty screens by default...

Use multivt boot option.

or
Code: [Select]
sudo openvt su - tc
to allocate additional vt's without rebooting.
Title: Re: Tuning TCL
Post by: tinypoodle on March 31, 2013, 11:22:46 AM
And secondly - how can i suspend TCL into RAM and HDD? I tried to use pm-utils and suspend utils - it failed... Pm-utils worked properly, but waking up failed - I saw only black screen after this action.

FWIW, a script which creates an initramfs to resume from s2disk is posted here:
http://forum.tinycorelinux.net/index.php/topic,14915.msg85358.html#msg85358
Title: Re: Tuning TCL
Post by: Matesax on March 31, 2013, 11:45:04 AM
But s2disk/ram not work - only pm-utils.... And pm-utils display blank screen after wakeup...
Title: Re: Tuning TCL
Post by: tinypoodle on March 31, 2013, 12:00:09 PM
But s2disk/ram not work

"not work" = not informative!!

Quote
only pm-utils....

I am unable to find any reference neither in repo nor in forum - while there are plenty of references related to suspend (lately renamed to suspend-utils) in this forum.
Title: Re: Tuning TCL
Post by: Matesax on March 31, 2013, 12:26:16 PM
Code: [Select]
tc@box:/$ sudo s2ram
Machine is unknown.
This machine can be identified by:
    sys_vendor   = "eMachines"
    sys_product  = "eME642"
    sys_version  = "V2.14"
    bios_version = "V2.14"

---------------

tc@box:/$ sudo s2disk
s2disk: Could not stat the resume device file. Reason: No such file or directory
tc@box:/$ s2[tab]
s2both  s2disk  s2ram
Title: Re: Tuning TCL
Post by: tinypoodle on March 31, 2013, 01:04:16 PM
Code: [Select]
tc@box:/$ sudo s2disk
s2disk: Could not stat the resume device file. Reason: No such file or directory

Most likely configuration error in your /etc/suspend.conf
Title: Re: Tuning TCL
Post by: Matesax on March 31, 2013, 01:46:04 PM
My system not contains this file... Can you upload it?
Title: Re: Tuning TCL
Post by: Rich on March 31, 2013, 02:38:46 PM
Hi Matesax
There should be a sample in:
Code: [Select]
/usr/local/share/suspend-utils/files/suspend.conf
Title: Re: Tuning TCL
Post by: Matesax on March 31, 2013, 03:17:42 PM
Code: [Select]
snapshot device = /dev/snapshot
resume device = <path_to_resume_device_file>
#image size = 350000000
#suspend loglevel = 2
#compute checksum = y
#compress = y
#encrypt = y
#early writeout = y
#splash = y

This code contains only 2 commands - really correctly commands... In this file cannot be a problem...

In my test script /dev/snapshot working...
Title: Re: Tuning TCL
Post by: tinypoodle on March 31, 2013, 03:21:22 PM
My system not contains this file... Can you upload it?

Well, you showing that you use "s2disk" without any options at all would lead to the conclusion that you rely on a configuration file...  ::)

What Rich said
Title: Re: Tuning TCL
Post by: tinypoodle on March 31, 2013, 03:26:56 PM
http://manpages.ubuntu.com/manpages/lucid/en/man8/uswsusp.conf.8.html
Title: Re: Tuning TCL
Post by: Matesax on March 31, 2013, 03:32:56 PM
I never configure this command - I work over 5 years in UNIX ... (I used a lot of distro.) Ever is something for the first time...  :D
Title: Re: Tuning TCL
Post by: tinypoodle on March 31, 2013, 03:40:13 PM
Suspend is Linux specific.
Userspace tools rely on kernel infrastructure.
Title: Re: Tuning TCL
Post by: tinypoodle on March 31, 2013, 04:13:08 PM
Code: [Select]
tc@box:~$ cat /etc/suspend.conf
snapshot device = /dev/snapshot
resume device = /dev/sda1
resume offset = 384222
image size = 0
shutdown method = platform
suspend loglevel = 9
#compute checksum = y
#compress = y
#encrypt = y
early writeout = y
#splash = y
resume pause = 30

Check
Code: [Select]
cat /sys/power/state
cat /sys/power/disk

for capabilities specific to your system.
Title: Re: Tuning TCL
Post by: tinypoodle on April 01, 2013, 01:43:11 AM
EDIT - And last  ;D - why gpm not display mouse?



(http://upurs.us/thumb/47261.jpeg) (http://upurs.us/image/47261.png)
Title: Re: Tuning TCL
Post by: Matesax on April 01, 2013, 03:38:34 AM
But in my distro this not working...
Title: Re: Tuning TCL
Post by: Matesax on April 01, 2013, 10:14:25 AM
Hi,
how can I enable shift modifier in X?
Title: Re: Tuning TCL
Post by: Rich on April 01, 2013, 10:26:54 AM
Hi Matesax
Quote
But in my distro this not working...
Asking questions without supplying any information is not the best way to resolve a problem.
Title: Re: Tuning TCL
Post by: Matesax on April 01, 2013, 10:30:42 AM
sudo gpm

This is all information... - no error, no problem, no working... This command correctly set files - but mouse not working...
Title: Re: Tuning TCL
Post by: tinypoodle on April 01, 2013, 10:01:39 PM
As expected!!   ::)

Same mistake here as earlier with s2disk.
If you execute a command while omitting mandatory options it will never ever do what you want!

1. Before using any extension read its info file and follow instructions as indicated.
2. With most programs options "-h" or "--help" will provide brief usage instructions.
3. In doubt consult manual page of program.