Results 1 to 10 of 10

Thread: How to stop printer-related stuff to save memory?

  1. #1
    Join Date
    May 2004
    Location
    Moscow, Russia
    Posts
    50

    How to stop printer-related stuff to save memory?

    Hello?

    I am looking for a commands in post-boot (custom software 1.9.2.7 CR3c) to stop and unload printer related software from router memory. The reason is to save some RAM for rcamd together with dropbear client for remote tunneling. I've already removed usbaudio related stuff, but looks like it is not enough - box is a bit unstable and I receive Out of memory messages when I logged in.

    Can anybody help me with commands?

    TIA and regards,
    Roofcat

  2. #2
    Join Date
    Jan 2005
    Location
    Vienna
    Posts
    41

    remove modules?

    did you already remove video aond audio modules within your linux-tree?
    cd broadcom/src/linux/linux
    make menuconfig
    cd ../../gateway
    make && make install

  3. #3
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by RoofCat
    Hello?

    I am looking for a commands in post-boot (custom software 1.9.2.7 CR3c) to stop and unload printer related software from router memory. The reason is to save some RAM for rcamd together with dropbear client for remote tunneling. I've already removed usbaudio related stuff, but looks like it is not enough - box is a bit unstable and I receive Out of memory messages when I logged in.

    Can anybody help me with commands?

    TIA and regards,
    Roofcat
    Well, try something like this for audio:
    Code:
    killall waveservermain
    rmmod audio
    rmmod soundcore
    For printing stuff
    Code:
    killall p910nd
    killall lpd
    killall infosvr
    rmmod printer
    rmmod parport
    rmmod parport_splink
    rmmod lp
    Please check that last lines does not cause device reboot during rmmod. BTW, rcamd as well as any other streaming apps will cause out of memory most of the time (they need memory for storing pictures in transit). Try adding swap space. Buying wl500g deluxe is also a good idea.

  4. #4
    Join Date
    May 2004
    Location
    Moscow, Russia
    Posts
    50
    Quote Originally Posted by majx
    did you already remove video aond audio modules within your linux-tree?
    cd broadcom/src/linux/linux
    make menuconfig
    cd ../../gateway
    make && make install
    No. I do not have build environment installed (honestly, I even have no Linux partition on my notebook

    So killing unnecessary apps and removing modules is my only way for now.

    Thanks anyway.

    Regards,
    Roofcat

  5. #5
    Join Date
    May 2004
    Location
    Moscow, Russia
    Posts
    50
    Quote Originally Posted by Oleg
    Well, try something like this for audio:
    Code:
    killall waveservermain
    rmmod audio
    rmmod soundcore
    Already done that. It works, adding smthg like 150k free RAM.
    Quote Originally Posted by Oleg
    For printing stuff
    Code:
    killall p910nd
    killall lpd
    killall infosvr
    rmmod printer
    rmmod parport
    rmmod parport_splink
    rmmod lp
    Please check that last lines does not cause device reboot during rmmod. BTW, rcamd as well as any other streaming apps will cause out of memory most of the time (they need memory for storing pictures in transit). Try adding swap space. Buying wl500g deluxe is also a good idea.
    Thanks, I'll try this. I've tried already to kill lpd (successfully) but I still have two processes named p9101 or similar (sorry, I do not have access to the box at the moment) which I cannot kill (they survive normal kill and killall). I'll try suggested way.

    Concerning your comment about streaming - is there a way to configure rcamd to work in "jpeg-only" mode, without streaming? My goal is to configure the router to act like security cam with e-mail alerts on motion, and I will not use activeX streaming mode.

    And one more question - is there a way to use SMTP AUTH mode while sending motion alert email by router?

    Thanks again
    regards,
    Roofcat

  6. #6
    Join Date
    Jan 2005
    Location
    Vienna
    Posts
    41

    Question will be a poll - gnupg for sending mails?

    X)
    150k "RAM" - and the rest? why don't you try to recompile your src to get less?

    XX)i would even think of:
    every alert mail is getting encrypted for a special recipient by gnupg.

    You already have your mail-addr and gnuPG key ? (the public one?)
    (gnupg not yet implemented in the sources?)

    poll for getting gnupg inside? -> !!!

    poll for make your router send automatic alert-mails to your mail-address?
    !!!
    "normal" config over http (hey, asuy guys ) typing in the receivers mail-addr and the sending ones
    -> 2 times my own mail addr + my gnupg key?
    Last edited by majx; 09-02-2005 at 01:26.

  7. #7
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by RoofCat
    Concerning your comment about streaming - is there a way to configure rcamd to work in "jpeg-only" mode, without streaming? My goal is to configure the router to act like security cam with e-mail alerts on motion, and I will not use activeX streaming mode.
    well, just do not use this mode at all. I mean do not open webcam pages.

    And one more question - is there a way to use SMTP AUTH mode while sending motion alert email by router?
    It's unlikely, at least with current app.

  8. #8
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt a.M.
    Posts
    299
    Hello,

    how can i kill printer stuff after a reboot?
    Should I try to type the CODE in the post-boot?

    Code:
    killall p910nd 
    killall lpd 
    killall infosvr 
    rmmod printer 
    rmmod parport 
    rmmod parport_splink 
    rmmod lp


    Please check that last lines does not cause device reboot during rmmod.

  9. #9
    Quote Originally Posted by RoofCat

    And one more question - is there a way to use SMTP AUTH mode while sending motion alert email by router?

    Thanks again
    regards,
    Roofcat

    Your best option is to use palantir (look for it in the forum), and maybe set up a script using ssmtp. It will do smtp auth.

    Please get it from my mails tools

  10. #10
    Join Date
    May 2004
    Location
    Moscow, Russia
    Posts
    50
    Quote Originally Posted by hugo
    Your best option is to use palantir (look for it in the forum), and maybe set up a script using ssmtp. It will do smtp auth.

    Please get it from my mails tools
    Thanks, Hugo, I've already using mvc - not palantir cause I need only jpeg capture, not video stream. I'll try smtp auth from mailtools to make delivery.

    Regards,
    Roofcat

Similar Threads

  1. Save As a File
    By kwewel in forum Dutch Discussion - Nederlands
    Replies: 0
    Last Post: 16-08-2005, 23:14
  2. Related software into WL 500, USB (ext3)
    By magla in forum WL-500g Q&A
    Replies: 2
    Last Post: 07-08-2005, 15:48
  3. How do I save my changes to Iptables?
    By oyvindk in forum WL-500g Q&A
    Replies: 6
    Last Post: 23-02-2005, 13:26
  4. FASTER PRINTING: extra printer memory
    By xlephant in forum WL-500g Custom Development
    Replies: 1
    Last Post: 29-10-2004, 12:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •