The officially official Devuan Forum!

You are not logged in.

#26 2021-04-06 14:22:55

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Minimalism Tips

More ffmpeg minimal minimalist minimalism...  tongue

Don't use a bloated screen recorder like Simple Screen Recorder, OBS, etc...

Just use ffmpeg to record your screen and alsa to record the audio at the same time...

This is the command that I use; adjust it to your needs wink, because I have alsa set to use my USB microphone default:CARD=U0x46d0x825, my screen size -video_size 1366x768, frame rate -r 15 etc...

ffmpeg -y -f alsa -i default:CARD=U0x46d0x825 -f x11grab -r 15 -video_size 1366x768 -i :0.0+0,0 -c:v libx264rgb -preset ultrafast ~/Videos/output.mkv

If you're not sure how to find your USB microphone (if you use one), use this command to find it, then exchange your "card" in the command...

arecord -L

I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#27 2021-04-07 15:55:00

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Minimalism Tips

If you are only interested in keeping your screen from turning off, don't use a bloated power manager or screen saver...just add this to your autostart...

xset s off && xset -dpms

wink


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#28 2021-04-07 16:09:42

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Minimalism Tips

^ Multiple options can be combined in a single command:

xset s off -dpms

Brianna Ghey — Rest In Power

Offline

#29 2021-04-07 16:52:48

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Minimalism Tips

Head_on_a_Stick wrote:

^ Multiple options can be combined in a single command:

xset s off -dpms

HEY! Don't be minimalizing my minimalism! mad

Bwahahahaha! tongue


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#30 2021-04-08 17:34:58

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Minimalism Tips

Don't use a bloated volume icon on your panel tongue ; just use the volume keys on your keyboard.

Here's what I have in my Openbox rc.xml file; adjust it to the needs of your WM/DE. By the way, this is for alsa-only...

    <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <command>amixer set Master 5%+</command>
      </action>
    </keybind>
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <command>amixer set Master 5%-</command>
      </action>
    </keybind>
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <command>amixer set Master toggle</command>
      </action>
    </keybind>

I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#31 2021-04-08 17:41:57

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Minimalism Tips

MiyoLinux wrote:

this is for alsa-only

Actually those commands will also work for PulseAudio (or PipeWire). But that's not very minimal smile


Brianna Ghey — Rest In Power

Offline

#32 2021-04-08 17:57:37

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Minimalism Tips

Head_on_a_Stick wrote:
MiyoLinux wrote:

this is for alsa-only

Actually those commands will also work for PulseAudio (or PipeWire). But that's not very minimal smile

cool

Thanks. I didn't know that since I don't use them. Could've sworn I saw different execute command for pulse at some point.

Thanks HoaS. smile

Last edited by MiyoLinux (2021-04-08 17:58:26)


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#33 2021-04-08 23:00:48

zapper
Member
Registered: 2017-05-29
Posts: 969  

Re: Minimalism Tips

Actually, moc seems to be the lightest way to play audio that I know of.

ffplay is way more cpu usage intensive in my findings... heh.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#34 2021-04-09 01:15:16

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Minimalism Tips

MiyoLinux wrote:

Don't use a bloated volume icon on your panel tongue ; just use the volume keys on your keyboard.

Here's what I have in my Openbox rc.xml file; adjust it to the needs of your WM/DE. By the way, this is for alsa-only...

    <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <command>amixer set Master 5%+</command>
      </action>
    </keybind>
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <command>amixer set Master 5%-</command>
      </action>
    </keybind>
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <command>amixer set Master toggle</command>
      </action>
    </keybind>

I use the same/similar for dwm. But i dont need the percentage sign, not sure if that is due to my wm or yours?

static Key keys[] = {
        /* modifier                     key        function        argument */
        { 0,                    XF86XK_AudioMute,                  spawn,          SHCMD("amixer set Master toggle")},
        { 0,                    XF86XK_AudioRaiseVolume,           spawn,          SHCMD("amixer set Master 5+")},
        { 0,                    XF86XK_AudioLowerVolume,           spawn,          SHCMD("amixer set Master 5-")},

Offline

#35 2021-04-09 01:17:56

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Minimalism Tips

zapper wrote:

Actually, moc seems to be the lightest way to play audio that I know of.

ffplay is way more cpu usage intensive in my findings... heh.

cmus may be lighter, not sure havent tested.

Offline

#36 2021-04-09 02:51:48

andyprough
Member
Registered: 2019-10-19
Posts: 327  

Re: Minimalism Tips

I wonder if apt is bloat. I'm sure it is to a certain extent. Would the system allow you to uninstall apt and aptitude and dpkg? Then just build stuff from source. Would you still have Devuan at that point?

I'm going to try 'sudo apt purge apt aptitude dpkg' in a Devuan vm and see what happens... And really sudo is bloat too when you think about it, so I'll try 'sudo apt purge apt aptitude dpkg sudo' just for kicks.

Update: Nope, does not work.

Last edited by andyprough (2021-04-09 02:52:51)

Offline

#37 2021-04-09 03:08:46

andyprough
Member
Registered: 2019-10-19
Posts: 327  

Re: Minimalism Tips

zapper wrote:

Actually, moc seems to be the lightest way to play audio that I know of.

ffplay is way more cpu usage intensive in my findings... heh.

Yes, big difference. Just played the same song with each - top showed moc using 1.4% cpu, and ffplay using 8%-14%. ffplay is bloat.

Offline

#38 2021-04-09 15:03:20

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Minimalism Tips

Quick ps_mem comparison:

  1.0 MiB +   2.1 MiB =   3.1 MiB       aplay
  7.5 MiB +  24.2 MiB =  31.7 MiB       mocp (2)
 38.6 MiB +  67.5 MiB = 106.0 MiB       ffplay

aplay ftw!


Brianna Ghey — Rest In Power

Offline

#39 2021-04-09 15:17:02

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Minimalism Tips

cmus comes in below mocp but aplay FTW.

ps_mem.py -p 26253                                                                                               
 Private  +   Shared  =  RAM used       Program

 19.7 MiB +   5.5 MiB =  25.2 MiB       cmus
---------------------------------
                         25.2 MiB
=================================

Offline

#40 2021-04-09 15:40:06

anticapitalista
Member
Registered: 2018-06-10
Posts: 36  

Re: Minimalism Tips

 1.8 MiB + 796.5 KiB =   2.6 MiB	mpg123.bin

Offline

#41 2021-04-09 15:58:14

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Minimalism Tips

anticapitalista wrote:
 1.8 MiB + 796.5 KiB =   2.6 MiB	mpg123.bin

we have a new winner!

But.

ps_mem.py -p 31564                                                                                                               
 Private  +   Shared  =  RAM used       Program

  1.1 MiB + 633.5 KiB =   1.7 MiB       mpg123.bin
---------------------------------
                          1.7 MiB
=================================

Offline

#42 2021-04-09 16:04:16

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Minimalism Tips

Perhaps we need a "Tips for Low Resource Usage" thread? tongue LOLOL!

I guess minimalism means different things though. My idea behind it was tips for using less (or unneeded) applications.

The new thread request was a joke. smile  Lots of great info here! Thanks everyone....keep it coming.


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#43 2021-04-09 16:05:26

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Minimalism Tips

On my hardware:

  1.7 MiB +   2.8 MiB =   4.5 MiB       mpg123

This is a 16GiB machine so Linux grabs all the memory it can for applications. I presume anticapitalista & dice have less memory available.

EDIT: death to MP3! Lossless compression ftw!

Last edited by Head_on_a_Stick (2021-04-09 16:06:07)


Brianna Ghey — Rest In Power

Offline

#44 2021-04-09 16:10:41

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Minimalism Tips

Head_on_a_Stick wrote:

On my hardware:

  1.7 MiB +   2.8 MiB =   4.5 MiB       mpg123

This is a 16GiB machine so Linux grabs all the memory it can for applications. I presume anticapitalista & dice have less memory available.

EDIT: death to MP3! Lossless compression ftw!

half yours on the machine im on at present. Valid point though.

Hey mp3 is ok, half my library is mp3, only the good stuff is flac wink

Offline

#45 2021-04-09 16:10:41

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Minimalism Tips

dice wrote:
anticapitalista wrote:
 1.8 MiB + 796.5 KiB =   2.6 MiB	mpg123.bin

we have a new winner!

But.

ps_mem.py -p 31564                                                                                                               
 Private  +   Shared  =  RAM used       Program

  1.1 MiB + 633.5 KiB =   1.7 MiB       mpg123.bin
---------------------------------
                          1.7 MiB
=================================

Nice!

Different machines will give different results. I boot Miyo-Rolling x86_64 on my laptop, and it boots at 180 MBs of RAM. Same exact setup boots on my old HP dx5150. desktop at 130 MBs of RAM.

We need a new "How to get the same results on every computer" thread.

tongue LOLOLOLOLOLOLOLOLOL


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#46 2021-04-09 16:36:55

anticapitalista
Member
Registered: 2018-06-10
Posts: 36  

Re: Minimalism Tips

Head_on_a_Stick wrote:

EDIT: death to MP3! Lossless compression ftw!

How about ogg?

2.8 MiB +   2.0 MiB =   4.8 MiB	ogg123
ogg123 /home/anticap/Music/Leftfield/Leftfield-Leftism/01.Release\ the\ Pressure.ogg

Last edited by anticapitalista (2021-04-09 16:37:35)

Offline

#47 2021-04-09 16:44:47

anticapitalista
Member
Registered: 2018-06-10
Posts: 36  

Re: Minimalism Tips

For flac - via sox

3.7 MiB +   1.2 MiB =   4.9 MiB	play
play 10-That\'s\ When\ I\ Reach\ For\ My\ Revolver.flac

Offline

#48 2021-04-09 17:55:14

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Minimalism Tips

anticapitalista wrote:

How about ogg?

That's just a container — it can hold either lossy (bad) or lossless (good) CODECs. OggPCM is one of the better options and carries the official HoaS stamp of approval™ smile

EDIT: Leftfield, nice!

Last edited by Head_on_a_Stick (2021-04-09 17:56:49)


Brianna Ghey — Rest In Power

Offline

#49 2021-04-12 23:21:52

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Minimalism Tips


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#50 2021-04-13 03:31:17

andyprough
Member
Registered: 2019-10-19
Posts: 327  

Re: Minimalism Tips

MiyoLinux wrote:

People may not realize that despite his lack of curly locks, Miyo still has one of the prettiest wives in all of Linux land: https://yewtu.be/watch?v=OYgZib8z6uY

Offline

Board footer